home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 September / Enter 09 2006.iso / Internet / SpamExperts Home 1.1 / SpamExperts Home.exe / lib / spamexperts.modules / wx / _misc.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-07-14  |  280.9 KB  |  7,850 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import _misc_
  5.  
  6. def _swig_setattr_nondynamic(self, class_type, name, value, static = 1):
  7.     if name == 'this':
  8.         if isinstance(value, class_type):
  9.             self.__dict__[name] = value.this
  10.             if hasattr(value, 'thisown'):
  11.                 self.__dict__['thisown'] = value.thisown
  12.             
  13.             del value.thisown
  14.             return None
  15.         
  16.     
  17.     method = class_type.__swig_setmethods__.get(name, None)
  18.     if method:
  19.         return method(self, value)
  20.     
  21.     if not static and hasattr(self, name) or name == 'thisown':
  22.         self.__dict__[name] = value
  23.     else:
  24.         raise AttributeError('You cannot add attributes to %s' % self)
  25.  
  26.  
  27. def _swig_setattr(self, class_type, name, value):
  28.     return _swig_setattr_nondynamic(self, class_type, name, value, 0)
  29.  
  30.  
  31. def _swig_getattr(self, class_type, name):
  32.     method = class_type.__swig_getmethods__.get(name, None)
  33.     if method:
  34.         return method(self)
  35.     
  36.     raise AttributeError, name
  37.  
  38. import types
  39.  
  40. try:
  41.     _object = types.ObjectType
  42.     _newclass = 1
  43. except AttributeError:
  44.     
  45.     class _object:
  46.         pass
  47.  
  48.     _newclass = 0
  49.  
  50. del types
  51.  
  52. def _swig_setattr_nondynamic_method(set):
  53.     
  54.     def set_attr(self, name, value):
  55.         if hasattr(self, name) or name in ('this', 'thisown'):
  56.             set(self, name, value)
  57.         else:
  58.             raise AttributeError('You cannot add attributes to %s' % self)
  59.  
  60.     return set_attr
  61.  
  62. import _core
  63. wx = _core
  64. SYS_OEM_FIXED_FONT = _misc_.SYS_OEM_FIXED_FONT
  65. SYS_ANSI_FIXED_FONT = _misc_.SYS_ANSI_FIXED_FONT
  66. SYS_ANSI_VAR_FONT = _misc_.SYS_ANSI_VAR_FONT
  67. SYS_SYSTEM_FONT = _misc_.SYS_SYSTEM_FONT
  68. SYS_DEVICE_DEFAULT_FONT = _misc_.SYS_DEVICE_DEFAULT_FONT
  69. SYS_DEFAULT_PALETTE = _misc_.SYS_DEFAULT_PALETTE
  70. SYS_SYSTEM_FIXED_FONT = _misc_.SYS_SYSTEM_FIXED_FONT
  71. SYS_DEFAULT_GUI_FONT = _misc_.SYS_DEFAULT_GUI_FONT
  72. SYS_ICONTITLE_FONT = _misc_.SYS_ICONTITLE_FONT
  73. SYS_COLOUR_SCROLLBAR = _misc_.SYS_COLOUR_SCROLLBAR
  74. SYS_COLOUR_BACKGROUND = _misc_.SYS_COLOUR_BACKGROUND
  75. SYS_COLOUR_DESKTOP = _misc_.SYS_COLOUR_DESKTOP
  76. SYS_COLOUR_ACTIVECAPTION = _misc_.SYS_COLOUR_ACTIVECAPTION
  77. SYS_COLOUR_INACTIVECAPTION = _misc_.SYS_COLOUR_INACTIVECAPTION
  78. SYS_COLOUR_MENU = _misc_.SYS_COLOUR_MENU
  79. SYS_COLOUR_WINDOW = _misc_.SYS_COLOUR_WINDOW
  80. SYS_COLOUR_WINDOWFRAME = _misc_.SYS_COLOUR_WINDOWFRAME
  81. SYS_COLOUR_MENUTEXT = _misc_.SYS_COLOUR_MENUTEXT
  82. SYS_COLOUR_WINDOWTEXT = _misc_.SYS_COLOUR_WINDOWTEXT
  83. SYS_COLOUR_CAPTIONTEXT = _misc_.SYS_COLOUR_CAPTIONTEXT
  84. SYS_COLOUR_ACTIVEBORDER = _misc_.SYS_COLOUR_ACTIVEBORDER
  85. SYS_COLOUR_INACTIVEBORDER = _misc_.SYS_COLOUR_INACTIVEBORDER
  86. SYS_COLOUR_APPWORKSPACE = _misc_.SYS_COLOUR_APPWORKSPACE
  87. SYS_COLOUR_HIGHLIGHT = _misc_.SYS_COLOUR_HIGHLIGHT
  88. SYS_COLOUR_HIGHLIGHTTEXT = _misc_.SYS_COLOUR_HIGHLIGHTTEXT
  89. SYS_COLOUR_BTNFACE = _misc_.SYS_COLOUR_BTNFACE
  90. SYS_COLOUR_3DFACE = _misc_.SYS_COLOUR_3DFACE
  91. SYS_COLOUR_BTNSHADOW = _misc_.SYS_COLOUR_BTNSHADOW
  92. SYS_COLOUR_3DSHADOW = _misc_.SYS_COLOUR_3DSHADOW
  93. SYS_COLOUR_GRAYTEXT = _misc_.SYS_COLOUR_GRAYTEXT
  94. SYS_COLOUR_BTNTEXT = _misc_.SYS_COLOUR_BTNTEXT
  95. SYS_COLOUR_INACTIVECAPTIONTEXT = _misc_.SYS_COLOUR_INACTIVECAPTIONTEXT
  96. SYS_COLOUR_BTNHIGHLIGHT = _misc_.SYS_COLOUR_BTNHIGHLIGHT
  97. SYS_COLOUR_BTNHILIGHT = _misc_.SYS_COLOUR_BTNHILIGHT
  98. SYS_COLOUR_3DHIGHLIGHT = _misc_.SYS_COLOUR_3DHIGHLIGHT
  99. SYS_COLOUR_3DHILIGHT = _misc_.SYS_COLOUR_3DHILIGHT
  100. SYS_COLOUR_3DDKSHADOW = _misc_.SYS_COLOUR_3DDKSHADOW
  101. SYS_COLOUR_3DLIGHT = _misc_.SYS_COLOUR_3DLIGHT
  102. SYS_COLOUR_INFOTEXT = _misc_.SYS_COLOUR_INFOTEXT
  103. SYS_COLOUR_INFOBK = _misc_.SYS_COLOUR_INFOBK
  104. SYS_COLOUR_LISTBOX = _misc_.SYS_COLOUR_LISTBOX
  105. SYS_COLOUR_HOTLIGHT = _misc_.SYS_COLOUR_HOTLIGHT
  106. SYS_COLOUR_GRADIENTACTIVECAPTION = _misc_.SYS_COLOUR_GRADIENTACTIVECAPTION
  107. SYS_COLOUR_GRADIENTINACTIVECAPTION = _misc_.SYS_COLOUR_GRADIENTINACTIVECAPTION
  108. SYS_COLOUR_MENUHILIGHT = _misc_.SYS_COLOUR_MENUHILIGHT
  109. SYS_COLOUR_MENUBAR = _misc_.SYS_COLOUR_MENUBAR
  110. SYS_COLOUR_MAX = _misc_.SYS_COLOUR_MAX
  111. SYS_MOUSE_BUTTONS = _misc_.SYS_MOUSE_BUTTONS
  112. SYS_BORDER_X = _misc_.SYS_BORDER_X
  113. SYS_BORDER_Y = _misc_.SYS_BORDER_Y
  114. SYS_CURSOR_X = _misc_.SYS_CURSOR_X
  115. SYS_CURSOR_Y = _misc_.SYS_CURSOR_Y
  116. SYS_DCLICK_X = _misc_.SYS_DCLICK_X
  117. SYS_DCLICK_Y = _misc_.SYS_DCLICK_Y
  118. SYS_DRAG_X = _misc_.SYS_DRAG_X
  119. SYS_DRAG_Y = _misc_.SYS_DRAG_Y
  120. SYS_EDGE_X = _misc_.SYS_EDGE_X
  121. SYS_EDGE_Y = _misc_.SYS_EDGE_Y
  122. SYS_HSCROLL_ARROW_X = _misc_.SYS_HSCROLL_ARROW_X
  123. SYS_HSCROLL_ARROW_Y = _misc_.SYS_HSCROLL_ARROW_Y
  124. SYS_HTHUMB_X = _misc_.SYS_HTHUMB_X
  125. SYS_ICON_X = _misc_.SYS_ICON_X
  126. SYS_ICON_Y = _misc_.SYS_ICON_Y
  127. SYS_ICONSPACING_X = _misc_.SYS_ICONSPACING_X
  128. SYS_ICONSPACING_Y = _misc_.SYS_ICONSPACING_Y
  129. SYS_WINDOWMIN_X = _misc_.SYS_WINDOWMIN_X
  130. SYS_WINDOWMIN_Y = _misc_.SYS_WINDOWMIN_Y
  131. SYS_SCREEN_X = _misc_.SYS_SCREEN_X
  132. SYS_SCREEN_Y = _misc_.SYS_SCREEN_Y
  133. SYS_FRAMESIZE_X = _misc_.SYS_FRAMESIZE_X
  134. SYS_FRAMESIZE_Y = _misc_.SYS_FRAMESIZE_Y
  135. SYS_SMALLICON_X = _misc_.SYS_SMALLICON_X
  136. SYS_SMALLICON_Y = _misc_.SYS_SMALLICON_Y
  137. SYS_HSCROLL_Y = _misc_.SYS_HSCROLL_Y
  138. SYS_VSCROLL_X = _misc_.SYS_VSCROLL_X
  139. SYS_VSCROLL_ARROW_X = _misc_.SYS_VSCROLL_ARROW_X
  140. SYS_VSCROLL_ARROW_Y = _misc_.SYS_VSCROLL_ARROW_Y
  141. SYS_VTHUMB_Y = _misc_.SYS_VTHUMB_Y
  142. SYS_CAPTION_Y = _misc_.SYS_CAPTION_Y
  143. SYS_MENU_Y = _misc_.SYS_MENU_Y
  144. SYS_NETWORK_PRESENT = _misc_.SYS_NETWORK_PRESENT
  145. SYS_PENWINDOWS_PRESENT = _misc_.SYS_PENWINDOWS_PRESENT
  146. SYS_SHOW_SOUNDS = _misc_.SYS_SHOW_SOUNDS
  147. SYS_SWAP_BUTTONS = _misc_.SYS_SWAP_BUTTONS
  148. SYS_CAN_DRAW_FRAME_DECORATIONS = _misc_.SYS_CAN_DRAW_FRAME_DECORATIONS
  149. SYS_CAN_ICONIZE_FRAME = _misc_.SYS_CAN_ICONIZE_FRAME
  150. SYS_SCREEN_NONE = _misc_.SYS_SCREEN_NONE
  151. SYS_SCREEN_TINY = _misc_.SYS_SCREEN_TINY
  152. SYS_SCREEN_PDA = _misc_.SYS_SCREEN_PDA
  153. SYS_SCREEN_SMALL = _misc_.SYS_SCREEN_SMALL
  154. SYS_SCREEN_DESKTOP = _misc_.SYS_SCREEN_DESKTOP
  155.  
  156. class SystemSettings(object):
  157.     '''Proxy of C++ SystemSettings class'''
  158.     
  159.     def __init__(self):
  160.         raise RuntimeError, 'No constructor defined'
  161.  
  162.     
  163.     def __repr__(self):
  164.         return '<%s.%s; proxy of C++ wxSystemSettings instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  165.  
  166.     
  167.     def GetColour(*args, **kwargs):
  168.         '''GetColour(int index) -> Colour'''
  169.         return _misc_.SystemSettings_GetColour(*args, **kwargs)
  170.  
  171.     GetColour = staticmethod(GetColour)
  172.     
  173.     def GetFont(*args, **kwargs):
  174.         '''GetFont(int index) -> Font'''
  175.         return _misc_.SystemSettings_GetFont(*args, **kwargs)
  176.  
  177.     GetFont = staticmethod(GetFont)
  178.     
  179.     def GetMetric(*args, **kwargs):
  180.         '''GetMetric(int index, Window win=None) -> int'''
  181.         return _misc_.SystemSettings_GetMetric(*args, **kwargs)
  182.  
  183.     GetMetric = staticmethod(GetMetric)
  184.     
  185.     def HasFeature(*args, **kwargs):
  186.         '''HasFeature(int index) -> bool'''
  187.         return _misc_.SystemSettings_HasFeature(*args, **kwargs)
  188.  
  189.     HasFeature = staticmethod(HasFeature)
  190.     
  191.     def GetScreenType(*args, **kwargs):
  192.         '''GetScreenType() -> int'''
  193.         return _misc_.SystemSettings_GetScreenType(*args, **kwargs)
  194.  
  195.     GetScreenType = staticmethod(GetScreenType)
  196.     
  197.     def SetScreenType(*args, **kwargs):
  198.         '''SetScreenType(int screen)'''
  199.         return _misc_.SystemSettings_SetScreenType(*args, **kwargs)
  200.  
  201.     SetScreenType = staticmethod(SetScreenType)
  202.  
  203.  
  204. class SystemSettingsPtr(SystemSettings):
  205.     
  206.     def __init__(self, this):
  207.         self.this = this
  208.         if not hasattr(self, 'thisown'):
  209.             self.thisown = 0
  210.         
  211.         self.__class__ = SystemSettings
  212.  
  213.  
  214. _misc_.SystemSettings_swigregister(SystemSettingsPtr)
  215.  
  216. def SystemSettings_GetColour(*args, **kwargs):
  217.     '''SystemSettings_GetColour(int index) -> Colour'''
  218.     return _misc_.SystemSettings_GetColour(*args, **kwargs)
  219.  
  220.  
  221. def SystemSettings_GetFont(*args, **kwargs):
  222.     '''SystemSettings_GetFont(int index) -> Font'''
  223.     return _misc_.SystemSettings_GetFont(*args, **kwargs)
  224.  
  225.  
  226. def SystemSettings_GetMetric(*args, **kwargs):
  227.     '''SystemSettings_GetMetric(int index, Window win=None) -> int'''
  228.     return _misc_.SystemSettings_GetMetric(*args, **kwargs)
  229.  
  230.  
  231. def SystemSettings_HasFeature(*args, **kwargs):
  232.     '''SystemSettings_HasFeature(int index) -> bool'''
  233.     return _misc_.SystemSettings_HasFeature(*args, **kwargs)
  234.  
  235.  
  236. def SystemSettings_GetScreenType(*args, **kwargs):
  237.     '''SystemSettings_GetScreenType() -> int'''
  238.     return _misc_.SystemSettings_GetScreenType(*args, **kwargs)
  239.  
  240.  
  241. def SystemSettings_SetScreenType(*args, **kwargs):
  242.     '''SystemSettings_SetScreenType(int screen)'''
  243.     return _misc_.SystemSettings_SetScreenType(*args, **kwargs)
  244.  
  245.  
  246. class SystemOptions(_core.Object):
  247.     '''Proxy of C++ SystemOptions class'''
  248.     
  249.     def __repr__(self):
  250.         return '<%s.%s; proxy of C++ wxSystemOptions instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  251.  
  252.     
  253.     def __init__(self, *args, **kwargs):
  254.         '''__init__(self) -> SystemOptions'''
  255.         newobj = _misc_.new_SystemOptions(*args, **kwargs)
  256.         self.this = newobj.this
  257.         self.thisown = 1
  258.         del newobj.thisown
  259.  
  260.     
  261.     def SetOption(*args, **kwargs):
  262.         '''SetOption(String name, String value)'''
  263.         return _misc_.SystemOptions_SetOption(*args, **kwargs)
  264.  
  265.     SetOption = staticmethod(SetOption)
  266.     
  267.     def SetOptionInt(*args, **kwargs):
  268.         '''SetOptionInt(String name, int value)'''
  269.         return _misc_.SystemOptions_SetOptionInt(*args, **kwargs)
  270.  
  271.     SetOptionInt = staticmethod(SetOptionInt)
  272.     
  273.     def GetOption(*args, **kwargs):
  274.         '''GetOption(String name) -> String'''
  275.         return _misc_.SystemOptions_GetOption(*args, **kwargs)
  276.  
  277.     GetOption = staticmethod(GetOption)
  278.     
  279.     def GetOptionInt(*args, **kwargs):
  280.         '''GetOptionInt(String name) -> int'''
  281.         return _misc_.SystemOptions_GetOptionInt(*args, **kwargs)
  282.  
  283.     GetOptionInt = staticmethod(GetOptionInt)
  284.     
  285.     def HasOption(*args, **kwargs):
  286.         '''HasOption(String name) -> bool'''
  287.         return _misc_.SystemOptions_HasOption(*args, **kwargs)
  288.  
  289.     HasOption = staticmethod(HasOption)
  290.     
  291.     def IsFalse(*args, **kwargs):
  292.         '''IsFalse(String name) -> bool'''
  293.         return _misc_.SystemOptions_IsFalse(*args, **kwargs)
  294.  
  295.     IsFalse = staticmethod(IsFalse)
  296.  
  297.  
  298. class SystemOptionsPtr(SystemOptions):
  299.     
  300.     def __init__(self, this):
  301.         self.this = this
  302.         if not hasattr(self, 'thisown'):
  303.             self.thisown = 0
  304.         
  305.         self.__class__ = SystemOptions
  306.  
  307.  
  308. _misc_.SystemOptions_swigregister(SystemOptionsPtr)
  309. cvar = _misc_.cvar
  310. WINDOW_DEFAULT_VARIANT = cvar.WINDOW_DEFAULT_VARIANT
  311.  
  312. def SystemOptions_SetOption(*args, **kwargs):
  313.     '''SystemOptions_SetOption(String name, String value)'''
  314.     return _misc_.SystemOptions_SetOption(*args, **kwargs)
  315.  
  316.  
  317. def SystemOptions_SetOptionInt(*args, **kwargs):
  318.     '''SystemOptions_SetOptionInt(String name, int value)'''
  319.     return _misc_.SystemOptions_SetOptionInt(*args, **kwargs)
  320.  
  321.  
  322. def SystemOptions_GetOption(*args, **kwargs):
  323.     '''SystemOptions_GetOption(String name) -> String'''
  324.     return _misc_.SystemOptions_GetOption(*args, **kwargs)
  325.  
  326.  
  327. def SystemOptions_GetOptionInt(*args, **kwargs):
  328.     '''SystemOptions_GetOptionInt(String name) -> int'''
  329.     return _misc_.SystemOptions_GetOptionInt(*args, **kwargs)
  330.  
  331.  
  332. def SystemOptions_HasOption(*args, **kwargs):
  333.     '''SystemOptions_HasOption(String name) -> bool'''
  334.     return _misc_.SystemOptions_HasOption(*args, **kwargs)
  335.  
  336.  
  337. def SystemOptions_IsFalse(*args, **kwargs):
  338.     '''SystemOptions_IsFalse(String name) -> bool'''
  339.     return _misc_.SystemOptions_IsFalse(*args, **kwargs)
  340.  
  341.  
  342. def NewId(*args, **kwargs):
  343.     '''NewId() -> long'''
  344.     return _misc_.NewId(*args, **kwargs)
  345.  
  346.  
  347. def RegisterId(*args, **kwargs):
  348.     '''RegisterId(long id)'''
  349.     return _misc_.RegisterId(*args, **kwargs)
  350.  
  351.  
  352. def GetCurrentId(*args, **kwargs):
  353.     '''GetCurrentId() -> long'''
  354.     return _misc_.GetCurrentId(*args, **kwargs)
  355.  
  356.  
  357. def IsStockID(*args, **kwargs):
  358.     '''IsStockID(int id) -> bool'''
  359.     return _misc_.IsStockID(*args, **kwargs)
  360.  
  361.  
  362. def IsStockLabel(*args, **kwargs):
  363.     '''IsStockLabel(int id, String label) -> bool'''
  364.     return _misc_.IsStockLabel(*args, **kwargs)
  365.  
  366.  
  367. def GetStockLabel(*args, **kwargs):
  368.     '''GetStockLabel(int id, bool withCodes=True, String accelerator=EmptyString) -> String'''
  369.     return _misc_.GetStockLabel(*args, **kwargs)
  370.  
  371.  
  372. def Bell(*args, **kwargs):
  373.     '''Bell()'''
  374.     return _misc_.Bell(*args, **kwargs)
  375.  
  376.  
  377. def EndBusyCursor(*args, **kwargs):
  378.     '''EndBusyCursor()'''
  379.     return _misc_.EndBusyCursor(*args, **kwargs)
  380.  
  381.  
  382. def GetElapsedTime(*args, **kwargs):
  383.     '''GetElapsedTime(bool resetTimer=True) -> long'''
  384.     return _misc_.GetElapsedTime(*args, **kwargs)
  385.  
  386.  
  387. def IsBusy(*args, **kwargs):
  388.     '''IsBusy() -> bool'''
  389.     return _misc_.IsBusy(*args, **kwargs)
  390.  
  391.  
  392. def Now(*args, **kwargs):
  393.     '''Now() -> String'''
  394.     return _misc_.Now(*args, **kwargs)
  395.  
  396.  
  397. def Shell(*args, **kwargs):
  398.     '''Shell(String command=EmptyString) -> bool'''
  399.     return _misc_.Shell(*args, **kwargs)
  400.  
  401.  
  402. def StartTimer(*args, **kwargs):
  403.     '''StartTimer()'''
  404.     return _misc_.StartTimer(*args, **kwargs)
  405.  
  406.  
  407. def GetOsVersion(*args, **kwargs):
  408.     '''GetOsVersion() -> (platform, major, minor)'''
  409.     return _misc_.GetOsVersion(*args, **kwargs)
  410.  
  411.  
  412. def GetOsDescription(*args, **kwargs):
  413.     '''GetOsDescription() -> String'''
  414.     return _misc_.GetOsDescription(*args, **kwargs)
  415.  
  416.  
  417. def GetFreeMemory(*args, **kwargs):
  418.     '''GetFreeMemory() -> long'''
  419.     return _misc_.GetFreeMemory(*args, **kwargs)
  420.  
  421. SHUTDOWN_POWEROFF = _misc_.SHUTDOWN_POWEROFF
  422. SHUTDOWN_REBOOT = _misc_.SHUTDOWN_REBOOT
  423.  
  424. def Shutdown(*args, **kwargs):
  425.     '''Shutdown(int wFlags) -> bool'''
  426.     return _misc_.Shutdown(*args, **kwargs)
  427.  
  428.  
  429. def Sleep(*args, **kwargs):
  430.     '''Sleep(int secs)'''
  431.     return _misc_.Sleep(*args, **kwargs)
  432.  
  433.  
  434. def MilliSleep(*args, **kwargs):
  435.     '''MilliSleep(unsigned long milliseconds)'''
  436.     return _misc_.MilliSleep(*args, **kwargs)
  437.  
  438.  
  439. def MicroSleep(*args, **kwargs):
  440.     '''MicroSleep(unsigned long microseconds)'''
  441.     return _misc_.MicroSleep(*args, **kwargs)
  442.  
  443. Usleep = MilliSleep
  444.  
  445. def EnableTopLevelWindows(*args, **kwargs):
  446.     '''EnableTopLevelWindows(bool enable)'''
  447.     return _misc_.EnableTopLevelWindows(*args, **kwargs)
  448.  
  449.  
  450. def StripMenuCodes(*args, **kwargs):
  451.     '''StripMenuCodes(String in) -> String'''
  452.     return _misc_.StripMenuCodes(*args, **kwargs)
  453.  
  454.  
  455. def GetEmailAddress(*args, **kwargs):
  456.     '''GetEmailAddress() -> String'''
  457.     return _misc_.GetEmailAddress(*args, **kwargs)
  458.  
  459.  
  460. def GetHostName(*args, **kwargs):
  461.     '''GetHostName() -> String'''
  462.     return _misc_.GetHostName(*args, **kwargs)
  463.  
  464.  
  465. def GetFullHostName(*args, **kwargs):
  466.     '''GetFullHostName() -> String'''
  467.     return _misc_.GetFullHostName(*args, **kwargs)
  468.  
  469.  
  470. def GetUserId(*args, **kwargs):
  471.     '''GetUserId() -> String'''
  472.     return _misc_.GetUserId(*args, **kwargs)
  473.  
  474.  
  475. def GetUserName(*args, **kwargs):
  476.     '''GetUserName() -> String'''
  477.     return _misc_.GetUserName(*args, **kwargs)
  478.  
  479.  
  480. def GetHomeDir(*args, **kwargs):
  481.     '''GetHomeDir() -> String'''
  482.     return _misc_.GetHomeDir(*args, **kwargs)
  483.  
  484.  
  485. def GetUserHome(*args, **kwargs):
  486.     '''GetUserHome(String user=EmptyString) -> String'''
  487.     return _misc_.GetUserHome(*args, **kwargs)
  488.  
  489.  
  490. def GetProcessId(*args, **kwargs):
  491.     '''GetProcessId() -> unsigned long'''
  492.     return _misc_.GetProcessId(*args, **kwargs)
  493.  
  494.  
  495. def Trap(*args, **kwargs):
  496.     '''Trap()'''
  497.     return _misc_.Trap(*args, **kwargs)
  498.  
  499.  
  500. def FileSelector(*args, **kwargs):
  501.     '''
  502.     FileSelector(String message=FileSelectorPromptStr, String default_path=EmptyString, 
  503.         String default_filename=EmptyString, 
  504.         String default_extension=EmptyString, 
  505.         String wildcard=FileSelectorDefaultWildcardStr, 
  506.         int flags=0, Window parent=None, int x=-1, 
  507.         int y=-1) -> String
  508.     '''
  509.     return _misc_.FileSelector(*args, **kwargs)
  510.  
  511.  
  512. def LoadFileSelector(*args, **kwargs):
  513.     '''
  514.     LoadFileSelector(String what, String extension, String default_name=EmptyString, 
  515.         Window parent=None) -> String
  516.     '''
  517.     return _misc_.LoadFileSelector(*args, **kwargs)
  518.  
  519.  
  520. def SaveFileSelector(*args, **kwargs):
  521.     '''
  522.     SaveFileSelector(String what, String extension, String default_name=EmptyString, 
  523.         Window parent=None) -> String
  524.     '''
  525.     return _misc_.SaveFileSelector(*args, **kwargs)
  526.  
  527.  
  528. def DirSelector(*args, **kwargs):
  529.     '''
  530.     DirSelector(String message=DirSelectorPromptStr, String defaultPath=EmptyString, 
  531.         long style=DD_DEFAULT_STYLE, 
  532.         Point pos=DefaultPosition, Window parent=None) -> String
  533.     '''
  534.     return _misc_.DirSelector(*args, **kwargs)
  535.  
  536.  
  537. def GetTextFromUser(*args, **kwargs):
  538.     '''
  539.     GetTextFromUser(String message, String caption=EmptyString, String default_value=EmptyString, 
  540.         Window parent=None, 
  541.         int x=-1, int y=-1, bool centre=True) -> String
  542.     '''
  543.     return _misc_.GetTextFromUser(*args, **kwargs)
  544.  
  545.  
  546. def GetPasswordFromUser(*args, **kwargs):
  547.     '''
  548.     GetPasswordFromUser(String message, String caption=EmptyString, String default_value=EmptyString, 
  549.         Window parent=None) -> String
  550.     '''
  551.     return _misc_.GetPasswordFromUser(*args, **kwargs)
  552.  
  553.  
  554. def GetSingleChoice(*args, **kwargs):
  555.     '''
  556.     GetSingleChoice(String message, String caption, int choices, Window parent=None, 
  557.         int x=-1, int y=-1, bool centre=True, 
  558.         int width=150, int height=200) -> String
  559.     '''
  560.     return _misc_.GetSingleChoice(*args, **kwargs)
  561.  
  562.  
  563. def GetSingleChoiceIndex(*args, **kwargs):
  564.     '''
  565.     GetSingleChoiceIndex(String message, String caption, int choices, Window parent=None, 
  566.         int x=-1, int y=-1, bool centre=True, 
  567.         int width=150, int height=200) -> int
  568.     '''
  569.     return _misc_.GetSingleChoiceIndex(*args, **kwargs)
  570.  
  571.  
  572. def MessageBox(*args, **kwargs):
  573.     '''
  574.     MessageBox(String message, String caption=EmptyString, int style=wxOK|wxCENTRE, 
  575.         Window parent=None, int x=-1, 
  576.         int y=-1) -> int
  577.     '''
  578.     return _misc_.MessageBox(*args, **kwargs)
  579.  
  580.  
  581. def GetNumberFromUser(*args, **kwargs):
  582.     '''
  583.     GetNumberFromUser(String message, String prompt, String caption, long value, 
  584.         long min=0, long max=100, Window parent=None, 
  585.         Point pos=DefaultPosition) -> long
  586.     '''
  587.     return _misc_.GetNumberFromUser(*args, **kwargs)
  588.  
  589. GetNumberFromUser = wx._deprecated(GetNumberFromUser)
  590.  
  591. def ColourDisplay(*args, **kwargs):
  592.     '''ColourDisplay() -> bool'''
  593.     return _misc_.ColourDisplay(*args, **kwargs)
  594.  
  595.  
  596. def DisplayDepth(*args, **kwargs):
  597.     '''DisplayDepth() -> int'''
  598.     return _misc_.DisplayDepth(*args, **kwargs)
  599.  
  600.  
  601. def GetDisplayDepth(*args, **kwargs):
  602.     '''GetDisplayDepth() -> int'''
  603.     return _misc_.GetDisplayDepth(*args, **kwargs)
  604.  
  605.  
  606. def DisplaySize(*args, **kwargs):
  607.     '''DisplaySize() -> (width, height)'''
  608.     return _misc_.DisplaySize(*args, **kwargs)
  609.  
  610.  
  611. def GetDisplaySize(*args, **kwargs):
  612.     '''GetDisplaySize() -> Size'''
  613.     return _misc_.GetDisplaySize(*args, **kwargs)
  614.  
  615.  
  616. def DisplaySizeMM(*args, **kwargs):
  617.     '''DisplaySizeMM() -> (width, height)'''
  618.     return _misc_.DisplaySizeMM(*args, **kwargs)
  619.  
  620.  
  621. def GetDisplaySizeMM(*args, **kwargs):
  622.     '''GetDisplaySizeMM() -> Size'''
  623.     return _misc_.GetDisplaySizeMM(*args, **kwargs)
  624.  
  625.  
  626. def ClientDisplayRect(*args, **kwargs):
  627.     '''ClientDisplayRect() -> (x, y, width, height)'''
  628.     return _misc_.ClientDisplayRect(*args, **kwargs)
  629.  
  630.  
  631. def GetClientDisplayRect(*args, **kwargs):
  632.     '''GetClientDisplayRect() -> Rect'''
  633.     return _misc_.GetClientDisplayRect(*args, **kwargs)
  634.  
  635.  
  636. def SetCursor(*args, **kwargs):
  637.     '''SetCursor(Cursor cursor)'''
  638.     return _misc_.SetCursor(*args, **kwargs)
  639.  
  640.  
  641. def GetXDisplay(*args, **kwargs):
  642.     '''
  643.     GetXDisplay() -> void
  644.  
  645.     Returns a swigified pointer to the X11 display.  Returns None on
  646.     other platforms.
  647.     '''
  648.     return _misc_.GetXDisplay(*args, **kwargs)
  649.  
  650.  
  651. def BeginBusyCursor(*args, **kwargs):
  652.     '''BeginBusyCursor(Cursor cursor=wxHOURGLASS_CURSOR)'''
  653.     return _misc_.BeginBusyCursor(*args, **kwargs)
  654.  
  655.  
  656. def GetMousePosition(*args, **kwargs):
  657.     '''
  658.     GetMousePosition() -> Point
  659.  
  660.     Get the current mouse position on the screen.
  661.     '''
  662.     return _misc_.GetMousePosition(*args, **kwargs)
  663.  
  664.  
  665. def FindWindowAtPointer(*args, **kwargs):
  666.     '''
  667.     FindWindowAtPointer() -> Window
  668.  
  669.     Returns the window currently under the mouse pointer, if it belongs to
  670.         this application.  Otherwise it returns None.
  671.     '''
  672.     return _misc_.FindWindowAtPointer(*args, **kwargs)
  673.  
  674.  
  675. def GetActiveWindow(*args, **kwargs):
  676.     '''
  677.     GetActiveWindow() -> Window
  678.  
  679.     Get the currently active window of this application, or None
  680.     '''
  681.     return _misc_.GetActiveWindow(*args, **kwargs)
  682.  
  683.  
  684. def GenericFindWindowAtPoint(*args, **kwargs):
  685.     '''GenericFindWindowAtPoint(Point pt) -> Window'''
  686.     return _misc_.GenericFindWindowAtPoint(*args, **kwargs)
  687.  
  688.  
  689. def FindWindowAtPoint(*args, **kwargs):
  690.     '''FindWindowAtPoint(Point pt) -> Window'''
  691.     return _misc_.FindWindowAtPoint(*args, **kwargs)
  692.  
  693.  
  694. def GetTopLevelParent(*args, **kwargs):
  695.     '''GetTopLevelParent(Window win) -> Window'''
  696.     return _misc_.GetTopLevelParent(*args, **kwargs)
  697.  
  698.  
  699. def LaunchDefaultBrowser(*args, **kwargs):
  700.     """
  701.     LaunchDefaultBrowser(String url) -> bool
  702.  
  703.     Launches the user's default browser and tells it to open the location
  704.     at ``url``.  Returns ``True`` if the application was successfully
  705.     launched.
  706.     """
  707.     return _misc_.LaunchDefaultBrowser(*args, **kwargs)
  708.  
  709.  
  710. def GetKeyState(*args, **kwargs):
  711.     '''
  712.     GetKeyState(int key) -> bool
  713.  
  714.     Get the state of a key (true if pressed or toggled on, false if not.)
  715.     This is generally most useful getting the state of the modifier or
  716.     toggle keys.  On some platforms those may be the only keys that this
  717.     function is able to detect.
  718.  
  719.     '''
  720.     return _misc_.GetKeyState(*args, **kwargs)
  721.  
  722.  
  723. class MouseState(object):
  724.     '''
  725.     `wx.MouseState` is used to hold information about mouse button and
  726.     modifier key states and is what is returned from `wx.GetMouseState`.
  727.     '''
  728.     
  729.     def __repr__(self):
  730.         return '<%s.%s; proxy of C++ wxMouseState instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  731.  
  732.     
  733.     def __init__(self, *args, **kwargs):
  734.         '''
  735.         __init__(self) -> MouseState
  736.  
  737.         `wx.MouseState` is used to hold information about mouse button and
  738.         modifier key states and is what is returned from `wx.GetMouseState`.
  739.         '''
  740.         newobj = _misc_.new_MouseState(*args, **kwargs)
  741.         self.this = newobj.this
  742.         self.thisown = 1
  743.         del newobj.thisown
  744.  
  745.     
  746.     def __del__(self, destroy = _misc_.delete_MouseState):
  747.         '''__del__(self)'''
  748.         
  749.         try:
  750.             if self.thisown:
  751.                 destroy(self)
  752.         except:
  753.             pass
  754.  
  755.  
  756.     
  757.     def GetX(*args, **kwargs):
  758.         '''GetX(self) -> int'''
  759.         return _misc_.MouseState_GetX(*args, **kwargs)
  760.  
  761.     
  762.     def GetY(*args, **kwargs):
  763.         '''GetY(self) -> int'''
  764.         return _misc_.MouseState_GetY(*args, **kwargs)
  765.  
  766.     
  767.     def LeftDown(*args, **kwargs):
  768.         '''LeftDown(self) -> bool'''
  769.         return _misc_.MouseState_LeftDown(*args, **kwargs)
  770.  
  771.     
  772.     def MiddleDown(*args, **kwargs):
  773.         '''MiddleDown(self) -> bool'''
  774.         return _misc_.MouseState_MiddleDown(*args, **kwargs)
  775.  
  776.     
  777.     def RightDown(*args, **kwargs):
  778.         '''RightDown(self) -> bool'''
  779.         return _misc_.MouseState_RightDown(*args, **kwargs)
  780.  
  781.     
  782.     def ControlDown(*args, **kwargs):
  783.         '''ControlDown(self) -> bool'''
  784.         return _misc_.MouseState_ControlDown(*args, **kwargs)
  785.  
  786.     
  787.     def ShiftDown(*args, **kwargs):
  788.         '''ShiftDown(self) -> bool'''
  789.         return _misc_.MouseState_ShiftDown(*args, **kwargs)
  790.  
  791.     
  792.     def AltDown(*args, **kwargs):
  793.         '''AltDown(self) -> bool'''
  794.         return _misc_.MouseState_AltDown(*args, **kwargs)
  795.  
  796.     
  797.     def MetaDown(*args, **kwargs):
  798.         '''MetaDown(self) -> bool'''
  799.         return _misc_.MouseState_MetaDown(*args, **kwargs)
  800.  
  801.     
  802.     def CmdDown(*args, **kwargs):
  803.         '''CmdDown(self) -> bool'''
  804.         return _misc_.MouseState_CmdDown(*args, **kwargs)
  805.  
  806.     
  807.     def SetX(*args, **kwargs):
  808.         '''SetX(self, int x)'''
  809.         return _misc_.MouseState_SetX(*args, **kwargs)
  810.  
  811.     
  812.     def SetY(*args, **kwargs):
  813.         '''SetY(self, int y)'''
  814.         return _misc_.MouseState_SetY(*args, **kwargs)
  815.  
  816.     
  817.     def SetLeftDown(*args, **kwargs):
  818.         '''SetLeftDown(self, bool down)'''
  819.         return _misc_.MouseState_SetLeftDown(*args, **kwargs)
  820.  
  821.     
  822.     def SetMiddleDown(*args, **kwargs):
  823.         '''SetMiddleDown(self, bool down)'''
  824.         return _misc_.MouseState_SetMiddleDown(*args, **kwargs)
  825.  
  826.     
  827.     def SetRightDown(*args, **kwargs):
  828.         '''SetRightDown(self, bool down)'''
  829.         return _misc_.MouseState_SetRightDown(*args, **kwargs)
  830.  
  831.     
  832.     def SetControlDown(*args, **kwargs):
  833.         '''SetControlDown(self, bool down)'''
  834.         return _misc_.MouseState_SetControlDown(*args, **kwargs)
  835.  
  836.     
  837.     def SetShiftDown(*args, **kwargs):
  838.         '''SetShiftDown(self, bool down)'''
  839.         return _misc_.MouseState_SetShiftDown(*args, **kwargs)
  840.  
  841.     
  842.     def SetAltDown(*args, **kwargs):
  843.         '''SetAltDown(self, bool down)'''
  844.         return _misc_.MouseState_SetAltDown(*args, **kwargs)
  845.  
  846.     
  847.     def SetMetaDown(*args, **kwargs):
  848.         '''SetMetaDown(self, bool down)'''
  849.         return _misc_.MouseState_SetMetaDown(*args, **kwargs)
  850.  
  851.     x = property(GetX, SetX)
  852.     y = property(GetY, SetY)
  853.     leftDown = property(LeftDown, SetLeftDown)
  854.     middleDown = property(MiddleDown, SetMiddleDown)
  855.     rightDown = property(RightDown, SetRightDown)
  856.     controlDown = property(ControlDown, SetControlDown)
  857.     shiftDown = property(ShiftDown, SetShiftDown)
  858.     altDown = property(AltDown, SetAltDown)
  859.     metaDown = property(MetaDown, SetMetaDown)
  860.     cmdDown = property(CmdDown)
  861.  
  862.  
  863. class MouseStatePtr(MouseState):
  864.     
  865.     def __init__(self, this):
  866.         self.this = this
  867.         if not hasattr(self, 'thisown'):
  868.             self.thisown = 0
  869.         
  870.         self.__class__ = MouseState
  871.  
  872.  
  873. _misc_.MouseState_swigregister(MouseStatePtr)
  874. FileSelectorPromptStr = cvar.FileSelectorPromptStr
  875. FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
  876. DirSelectorPromptStr = cvar.DirSelectorPromptStr
  877.  
  878. def GetMouseState(*args, **kwargs):
  879.     '''
  880.     GetMouseState() -> MouseState
  881.  
  882.     Returns the current state of the mouse.  Returns an instance of a
  883.     `wx.MouseState` object that contains the current position of the mouse
  884.     pointer in screen coordinants, as well as boolean values indicating
  885.     the up/down status of the mouse buttons and the modifier keys.
  886.     '''
  887.     return _misc_.GetMouseState(*args, **kwargs)
  888.  
  889.  
  890. def WakeUpMainThread(*args, **kwargs):
  891.     '''WakeUpMainThread()'''
  892.     return _misc_.WakeUpMainThread(*args, **kwargs)
  893.  
  894.  
  895. def MutexGuiEnter(*args, **kwargs):
  896.     '''MutexGuiEnter()'''
  897.     return _misc_.MutexGuiEnter(*args, **kwargs)
  898.  
  899.  
  900. def MutexGuiLeave(*args, **kwargs):
  901.     '''MutexGuiLeave()'''
  902.     return _misc_.MutexGuiLeave(*args, **kwargs)
  903.  
  904.  
  905. class MutexGuiLocker(object):
  906.     '''Proxy of C++ MutexGuiLocker class'''
  907.     
  908.     def __repr__(self):
  909.         return '<%s.%s; proxy of C++ wxMutexGuiLocker instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  910.  
  911.     
  912.     def __init__(self, *args, **kwargs):
  913.         '''__init__(self) -> MutexGuiLocker'''
  914.         newobj = _misc_.new_MutexGuiLocker(*args, **kwargs)
  915.         self.this = newobj.this
  916.         self.thisown = 1
  917.         del newobj.thisown
  918.  
  919.     
  920.     def __del__(self, destroy = _misc_.delete_MutexGuiLocker):
  921.         '''__del__(self)'''
  922.         
  923.         try:
  924.             if self.thisown:
  925.                 destroy(self)
  926.         except:
  927.             pass
  928.  
  929.  
  930.  
  931.  
  932. class MutexGuiLockerPtr(MutexGuiLocker):
  933.     
  934.     def __init__(self, this):
  935.         self.this = this
  936.         if not hasattr(self, 'thisown'):
  937.             self.thisown = 0
  938.         
  939.         self.__class__ = MutexGuiLocker
  940.  
  941.  
  942. _misc_.MutexGuiLocker_swigregister(MutexGuiLockerPtr)
  943.  
  944. def Thread_IsMain(*args, **kwargs):
  945.     '''Thread_IsMain() -> bool'''
  946.     return _misc_.Thread_IsMain(*args, **kwargs)
  947.  
  948.  
  949. class ToolTip(_core.Object):
  950.     '''Proxy of C++ ToolTip class'''
  951.     
  952.     def __repr__(self):
  953.         return '<%s.%s; proxy of C++ wxToolTip instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  954.  
  955.     
  956.     def __init__(self, *args, **kwargs):
  957.         '''__init__(self, String tip) -> ToolTip'''
  958.         newobj = _misc_.new_ToolTip(*args, **kwargs)
  959.         self.this = newobj.this
  960.         self.thisown = 1
  961.         del newobj.thisown
  962.  
  963.     
  964.     def SetTip(*args, **kwargs):
  965.         '''SetTip(self, String tip)'''
  966.         return _misc_.ToolTip_SetTip(*args, **kwargs)
  967.  
  968.     
  969.     def GetTip(*args, **kwargs):
  970.         '''GetTip(self) -> String'''
  971.         return _misc_.ToolTip_GetTip(*args, **kwargs)
  972.  
  973.     
  974.     def GetWindow(*args, **kwargs):
  975.         '''GetWindow(self) -> Window'''
  976.         return _misc_.ToolTip_GetWindow(*args, **kwargs)
  977.  
  978.     
  979.     def Enable(*args, **kwargs):
  980.         '''Enable(bool flag)'''
  981.         return _misc_.ToolTip_Enable(*args, **kwargs)
  982.  
  983.     Enable = staticmethod(Enable)
  984.     
  985.     def SetDelay(*args, **kwargs):
  986.         '''SetDelay(long milliseconds)'''
  987.         return _misc_.ToolTip_SetDelay(*args, **kwargs)
  988.  
  989.     SetDelay = staticmethod(SetDelay)
  990.  
  991.  
  992. class ToolTipPtr(ToolTip):
  993.     
  994.     def __init__(self, this):
  995.         self.this = this
  996.         if not hasattr(self, 'thisown'):
  997.             self.thisown = 0
  998.         
  999.         self.__class__ = ToolTip
  1000.  
  1001.  
  1002. _misc_.ToolTip_swigregister(ToolTipPtr)
  1003.  
  1004. def ToolTip_Enable(*args, **kwargs):
  1005.     '''ToolTip_Enable(bool flag)'''
  1006.     return _misc_.ToolTip_Enable(*args, **kwargs)
  1007.  
  1008.  
  1009. def ToolTip_SetDelay(*args, **kwargs):
  1010.     '''ToolTip_SetDelay(long milliseconds)'''
  1011.     return _misc_.ToolTip_SetDelay(*args, **kwargs)
  1012.  
  1013.  
  1014. class Caret(object):
  1015.     '''Proxy of C++ Caret class'''
  1016.     
  1017.     def __repr__(self):
  1018.         return '<%s.%s; proxy of C++ wxCaret instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1019.  
  1020.     
  1021.     def __init__(self, *args, **kwargs):
  1022.         '''__init__(self, Window window, Size size) -> Caret'''
  1023.         newobj = _misc_.new_Caret(*args, **kwargs)
  1024.         self.this = newobj.this
  1025.         self.thisown = 1
  1026.         del newobj.thisown
  1027.  
  1028.     
  1029.     def Destroy(*args, **kwargs):
  1030.         '''
  1031.         Destroy(self)
  1032.  
  1033.         Deletes the C++ object this Python object is a proxy for.
  1034.         '''
  1035.         return _misc_.Caret_Destroy(*args, **kwargs)
  1036.  
  1037.     
  1038.     def IsOk(*args, **kwargs):
  1039.         '''IsOk(self) -> bool'''
  1040.         return _misc_.Caret_IsOk(*args, **kwargs)
  1041.  
  1042.     
  1043.     def IsVisible(*args, **kwargs):
  1044.         '''IsVisible(self) -> bool'''
  1045.         return _misc_.Caret_IsVisible(*args, **kwargs)
  1046.  
  1047.     
  1048.     def GetPosition(*args, **kwargs):
  1049.         '''GetPosition(self) -> Point'''
  1050.         return _misc_.Caret_GetPosition(*args, **kwargs)
  1051.  
  1052.     
  1053.     def GetPositionTuple(*args, **kwargs):
  1054.         '''GetPositionTuple() -> (x,y)'''
  1055.         return _misc_.Caret_GetPositionTuple(*args, **kwargs)
  1056.  
  1057.     
  1058.     def GetSize(*args, **kwargs):
  1059.         '''GetSize(self) -> Size'''
  1060.         return _misc_.Caret_GetSize(*args, **kwargs)
  1061.  
  1062.     
  1063.     def GetSizeTuple(*args, **kwargs):
  1064.         '''GetSizeTuple() -> (width, height)'''
  1065.         return _misc_.Caret_GetSizeTuple(*args, **kwargs)
  1066.  
  1067.     
  1068.     def GetWindow(*args, **kwargs):
  1069.         '''GetWindow(self) -> Window'''
  1070.         return _misc_.Caret_GetWindow(*args, **kwargs)
  1071.  
  1072.     
  1073.     def MoveXY(*args, **kwargs):
  1074.         '''MoveXY(self, int x, int y)'''
  1075.         return _misc_.Caret_MoveXY(*args, **kwargs)
  1076.  
  1077.     
  1078.     def Move(*args, **kwargs):
  1079.         '''Move(self, Point pt)'''
  1080.         return _misc_.Caret_Move(*args, **kwargs)
  1081.  
  1082.     
  1083.     def SetSizeWH(*args, **kwargs):
  1084.         '''SetSizeWH(self, int width, int height)'''
  1085.         return _misc_.Caret_SetSizeWH(*args, **kwargs)
  1086.  
  1087.     
  1088.     def SetSize(*args, **kwargs):
  1089.         '''SetSize(self, Size size)'''
  1090.         return _misc_.Caret_SetSize(*args, **kwargs)
  1091.  
  1092.     
  1093.     def Show(*args, **kwargs):
  1094.         '''Show(self, int show=True)'''
  1095.         return _misc_.Caret_Show(*args, **kwargs)
  1096.  
  1097.     
  1098.     def Hide(*args, **kwargs):
  1099.         '''Hide(self)'''
  1100.         return _misc_.Caret_Hide(*args, **kwargs)
  1101.  
  1102.     
  1103.     def __nonzero__(self):
  1104.         return self.IsOk()
  1105.  
  1106.     
  1107.     def GetBlinkTime(*args, **kwargs):
  1108.         '''GetBlinkTime() -> int'''
  1109.         return _misc_.Caret_GetBlinkTime(*args, **kwargs)
  1110.  
  1111.     GetBlinkTime = staticmethod(GetBlinkTime)
  1112.     
  1113.     def SetBlinkTime(*args, **kwargs):
  1114.         '''SetBlinkTime(int milliseconds)'''
  1115.         return _misc_.Caret_SetBlinkTime(*args, **kwargs)
  1116.  
  1117.     SetBlinkTime = staticmethod(SetBlinkTime)
  1118.  
  1119.  
  1120. class CaretPtr(Caret):
  1121.     
  1122.     def __init__(self, this):
  1123.         self.this = this
  1124.         if not hasattr(self, 'thisown'):
  1125.             self.thisown = 0
  1126.         
  1127.         self.__class__ = Caret
  1128.  
  1129.  
  1130. _misc_.Caret_swigregister(CaretPtr)
  1131.  
  1132. def Caret_GetBlinkTime(*args, **kwargs):
  1133.     '''Caret_GetBlinkTime() -> int'''
  1134.     return _misc_.Caret_GetBlinkTime(*args, **kwargs)
  1135.  
  1136.  
  1137. def Caret_SetBlinkTime(*args, **kwargs):
  1138.     '''Caret_SetBlinkTime(int milliseconds)'''
  1139.     return _misc_.Caret_SetBlinkTime(*args, **kwargs)
  1140.  
  1141.  
  1142. class BusyCursor(object):
  1143.     '''Proxy of C++ BusyCursor class'''
  1144.     
  1145.     def __repr__(self):
  1146.         return '<%s.%s; proxy of C++ wxBusyCursor instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1147.  
  1148.     
  1149.     def __init__(self, *args, **kwargs):
  1150.         '''__init__(self, Cursor cursor=wxHOURGLASS_CURSOR) -> BusyCursor'''
  1151.         newobj = _misc_.new_BusyCursor(*args, **kwargs)
  1152.         self.this = newobj.this
  1153.         self.thisown = 1
  1154.         del newobj.thisown
  1155.  
  1156.     
  1157.     def __del__(self, destroy = _misc_.delete_BusyCursor):
  1158.         '''__del__(self)'''
  1159.         
  1160.         try:
  1161.             if self.thisown:
  1162.                 destroy(self)
  1163.         except:
  1164.             pass
  1165.  
  1166.  
  1167.  
  1168.  
  1169. class BusyCursorPtr(BusyCursor):
  1170.     
  1171.     def __init__(self, this):
  1172.         self.this = this
  1173.         if not hasattr(self, 'thisown'):
  1174.             self.thisown = 0
  1175.         
  1176.         self.__class__ = BusyCursor
  1177.  
  1178.  
  1179. _misc_.BusyCursor_swigregister(BusyCursorPtr)
  1180.  
  1181. class WindowDisabler(object):
  1182.     '''Proxy of C++ WindowDisabler class'''
  1183.     
  1184.     def __repr__(self):
  1185.         return '<%s.%s; proxy of C++ wxWindowDisabler instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1186.  
  1187.     
  1188.     def __init__(self, *args, **kwargs):
  1189.         '''__init__(self, Window winToSkip=None) -> WindowDisabler'''
  1190.         newobj = _misc_.new_WindowDisabler(*args, **kwargs)
  1191.         self.this = newobj.this
  1192.         self.thisown = 1
  1193.         del newobj.thisown
  1194.  
  1195.     
  1196.     def __del__(self, destroy = _misc_.delete_WindowDisabler):
  1197.         '''__del__(self)'''
  1198.         
  1199.         try:
  1200.             if self.thisown:
  1201.                 destroy(self)
  1202.         except:
  1203.             pass
  1204.  
  1205.  
  1206.  
  1207.  
  1208. class WindowDisablerPtr(WindowDisabler):
  1209.     
  1210.     def __init__(self, this):
  1211.         self.this = this
  1212.         if not hasattr(self, 'thisown'):
  1213.             self.thisown = 0
  1214.         
  1215.         self.__class__ = WindowDisabler
  1216.  
  1217.  
  1218. _misc_.WindowDisabler_swigregister(WindowDisablerPtr)
  1219.  
  1220. class BusyInfo(_core.Object):
  1221.     '''Proxy of C++ BusyInfo class'''
  1222.     
  1223.     def __repr__(self):
  1224.         return '<%s.%s; proxy of C++ wxBusyInfo instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1225.  
  1226.     
  1227.     def __init__(self, *args, **kwargs):
  1228.         '''__init__(self, String message) -> BusyInfo'''
  1229.         newobj = _misc_.new_BusyInfo(*args, **kwargs)
  1230.         self.this = newobj.this
  1231.         self.thisown = 1
  1232.         del newobj.thisown
  1233.  
  1234.     
  1235.     def __del__(self, destroy = _misc_.delete_BusyInfo):
  1236.         '''__del__(self)'''
  1237.         
  1238.         try:
  1239.             if self.thisown:
  1240.                 destroy(self)
  1241.         except:
  1242.             pass
  1243.  
  1244.  
  1245.  
  1246.  
  1247. class BusyInfoPtr(BusyInfo):
  1248.     
  1249.     def __init__(self, this):
  1250.         self.this = this
  1251.         if not hasattr(self, 'thisown'):
  1252.             self.thisown = 0
  1253.         
  1254.         self.__class__ = BusyInfo
  1255.  
  1256.  
  1257. _misc_.BusyInfo_swigregister(BusyInfoPtr)
  1258.  
  1259. class StopWatch(object):
  1260.     '''Proxy of C++ StopWatch class'''
  1261.     
  1262.     def __repr__(self):
  1263.         return '<%s.%s; proxy of C++ wxStopWatch instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1264.  
  1265.     
  1266.     def __init__(self, *args, **kwargs):
  1267.         '''__init__(self) -> StopWatch'''
  1268.         newobj = _misc_.new_StopWatch(*args, **kwargs)
  1269.         self.this = newobj.this
  1270.         self.thisown = 1
  1271.         del newobj.thisown
  1272.  
  1273.     
  1274.     def Start(*args, **kwargs):
  1275.         '''Start(self, long t0=0)'''
  1276.         return _misc_.StopWatch_Start(*args, **kwargs)
  1277.  
  1278.     
  1279.     def Pause(*args, **kwargs):
  1280.         '''Pause(self)'''
  1281.         return _misc_.StopWatch_Pause(*args, **kwargs)
  1282.  
  1283.     
  1284.     def Resume(*args, **kwargs):
  1285.         '''Resume(self)'''
  1286.         return _misc_.StopWatch_Resume(*args, **kwargs)
  1287.  
  1288.     
  1289.     def Time(*args, **kwargs):
  1290.         '''Time(self) -> long'''
  1291.         return _misc_.StopWatch_Time(*args, **kwargs)
  1292.  
  1293.  
  1294.  
  1295. class StopWatchPtr(StopWatch):
  1296.     
  1297.     def __init__(self, this):
  1298.         self.this = this
  1299.         if not hasattr(self, 'thisown'):
  1300.             self.thisown = 0
  1301.         
  1302.         self.__class__ = StopWatch
  1303.  
  1304.  
  1305. _misc_.StopWatch_swigregister(StopWatchPtr)
  1306.  
  1307. class FileHistory(_core.Object):
  1308.     '''Proxy of C++ FileHistory class'''
  1309.     
  1310.     def __repr__(self):
  1311.         return '<%s.%s; proxy of C++ wxFileHistory instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1312.  
  1313.     
  1314.     def __init__(self, *args, **kwargs):
  1315.         '''__init__(self, int maxFiles=9, int idBase=ID_FILE1) -> FileHistory'''
  1316.         newobj = _misc_.new_FileHistory(*args, **kwargs)
  1317.         self.this = newobj.this
  1318.         self.thisown = 1
  1319.         del newobj.thisown
  1320.  
  1321.     
  1322.     def __del__(self, destroy = _misc_.delete_FileHistory):
  1323.         '''__del__(self)'''
  1324.         
  1325.         try:
  1326.             if self.thisown:
  1327.                 destroy(self)
  1328.         except:
  1329.             pass
  1330.  
  1331.  
  1332.     
  1333.     def AddFileToHistory(*args, **kwargs):
  1334.         '''AddFileToHistory(self, String file)'''
  1335.         return _misc_.FileHistory_AddFileToHistory(*args, **kwargs)
  1336.  
  1337.     
  1338.     def RemoveFileFromHistory(*args, **kwargs):
  1339.         '''RemoveFileFromHistory(self, int i)'''
  1340.         return _misc_.FileHistory_RemoveFileFromHistory(*args, **kwargs)
  1341.  
  1342.     
  1343.     def GetMaxFiles(*args, **kwargs):
  1344.         '''GetMaxFiles(self) -> int'''
  1345.         return _misc_.FileHistory_GetMaxFiles(*args, **kwargs)
  1346.  
  1347.     
  1348.     def UseMenu(*args, **kwargs):
  1349.         '''UseMenu(self, Menu menu)'''
  1350.         return _misc_.FileHistory_UseMenu(*args, **kwargs)
  1351.  
  1352.     
  1353.     def RemoveMenu(*args, **kwargs):
  1354.         '''RemoveMenu(self, Menu menu)'''
  1355.         return _misc_.FileHistory_RemoveMenu(*args, **kwargs)
  1356.  
  1357.     
  1358.     def Load(*args, **kwargs):
  1359.         '''Load(self, ConfigBase config)'''
  1360.         return _misc_.FileHistory_Load(*args, **kwargs)
  1361.  
  1362.     
  1363.     def Save(*args, **kwargs):
  1364.         '''Save(self, ConfigBase config)'''
  1365.         return _misc_.FileHistory_Save(*args, **kwargs)
  1366.  
  1367.     
  1368.     def AddFilesToMenu(*args, **kwargs):
  1369.         '''AddFilesToMenu(self)'''
  1370.         return _misc_.FileHistory_AddFilesToMenu(*args, **kwargs)
  1371.  
  1372.     
  1373.     def AddFilesToThisMenu(*args, **kwargs):
  1374.         '''AddFilesToThisMenu(self, Menu menu)'''
  1375.         return _misc_.FileHistory_AddFilesToThisMenu(*args, **kwargs)
  1376.  
  1377.     
  1378.     def GetHistoryFile(*args, **kwargs):
  1379.         '''GetHistoryFile(self, int i) -> String'''
  1380.         return _misc_.FileHistory_GetHistoryFile(*args, **kwargs)
  1381.  
  1382.     
  1383.     def GetCount(*args, **kwargs):
  1384.         '''GetCount(self) -> int'''
  1385.         return _misc_.FileHistory_GetCount(*args, **kwargs)
  1386.  
  1387.     GetNoHistoryFiles = GetCount
  1388.  
  1389.  
  1390. class FileHistoryPtr(FileHistory):
  1391.     
  1392.     def __init__(self, this):
  1393.         self.this = this
  1394.         if not hasattr(self, 'thisown'):
  1395.             self.thisown = 0
  1396.         
  1397.         self.__class__ = FileHistory
  1398.  
  1399.  
  1400. _misc_.FileHistory_swigregister(FileHistoryPtr)
  1401.  
  1402. class SingleInstanceChecker(object):
  1403.     '''Proxy of C++ SingleInstanceChecker class'''
  1404.     
  1405.     def __repr__(self):
  1406.         return '<%s.%s; proxy of C++ wxSingleInstanceChecker instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1407.  
  1408.     
  1409.     def __init__(self, *args, **kwargs):
  1410.         '''__init__(self, String name, String path=EmptyString) -> SingleInstanceChecker'''
  1411.         newobj = _misc_.new_SingleInstanceChecker(*args, **kwargs)
  1412.         self.this = newobj.this
  1413.         self.thisown = 1
  1414.         del newobj.thisown
  1415.  
  1416.     
  1417.     def __del__(self, destroy = _misc_.delete_SingleInstanceChecker):
  1418.         '''__del__(self)'''
  1419.         
  1420.         try:
  1421.             if self.thisown:
  1422.                 destroy(self)
  1423.         except:
  1424.             pass
  1425.  
  1426.  
  1427.     
  1428.     def Create(*args, **kwargs):
  1429.         '''Create(self, String name, String path=EmptyString) -> bool'''
  1430.         return _misc_.SingleInstanceChecker_Create(*args, **kwargs)
  1431.  
  1432.     
  1433.     def IsAnotherRunning(*args, **kwargs):
  1434.         '''IsAnotherRunning(self) -> bool'''
  1435.         return _misc_.SingleInstanceChecker_IsAnotherRunning(*args, **kwargs)
  1436.  
  1437.  
  1438.  
  1439. class SingleInstanceCheckerPtr(SingleInstanceChecker):
  1440.     
  1441.     def __init__(self, this):
  1442.         self.this = this
  1443.         if not hasattr(self, 'thisown'):
  1444.             self.thisown = 0
  1445.         
  1446.         self.__class__ = SingleInstanceChecker
  1447.  
  1448.  
  1449. _misc_.SingleInstanceChecker_swigregister(SingleInstanceCheckerPtr)
  1450.  
  1451. def PreSingleInstanceChecker(*args, **kwargs):
  1452.     '''PreSingleInstanceChecker() -> SingleInstanceChecker'''
  1453.     val = _misc_.new_PreSingleInstanceChecker(*args, **kwargs)
  1454.     val.thisown = 1
  1455.     return val
  1456.  
  1457.  
  1458. def DrawWindowOnDC(*args, **kwargs):
  1459.     '''DrawWindowOnDC(Window window, DC dc) -> bool'''
  1460.     return _misc_.DrawWindowOnDC(*args, **kwargs)
  1461.  
  1462.  
  1463. class TipProvider(object):
  1464.     '''Proxy of C++ TipProvider class'''
  1465.     
  1466.     def __init__(self):
  1467.         raise RuntimeError, 'No constructor defined'
  1468.  
  1469.     
  1470.     def __repr__(self):
  1471.         return '<%s.%s; proxy of C++ wxTipProvider instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1472.  
  1473.     
  1474.     def __del__(self, destroy = _misc_.delete_TipProvider):
  1475.         '''__del__(self)'''
  1476.         
  1477.         try:
  1478.             if self.thisown:
  1479.                 destroy(self)
  1480.         except:
  1481.             pass
  1482.  
  1483.  
  1484.     
  1485.     def GetTip(*args, **kwargs):
  1486.         '''GetTip(self) -> String'''
  1487.         return _misc_.TipProvider_GetTip(*args, **kwargs)
  1488.  
  1489.     
  1490.     def GetCurrentTip(*args, **kwargs):
  1491.         '''GetCurrentTip(self) -> size_t'''
  1492.         return _misc_.TipProvider_GetCurrentTip(*args, **kwargs)
  1493.  
  1494.     
  1495.     def PreprocessTip(*args, **kwargs):
  1496.         '''PreprocessTip(self, String tip) -> String'''
  1497.         return _misc_.TipProvider_PreprocessTip(*args, **kwargs)
  1498.  
  1499.  
  1500.  
  1501. class TipProviderPtr(TipProvider):
  1502.     
  1503.     def __init__(self, this):
  1504.         self.this = this
  1505.         if not hasattr(self, 'thisown'):
  1506.             self.thisown = 0
  1507.         
  1508.         self.__class__ = TipProvider
  1509.  
  1510.  
  1511. _misc_.TipProvider_swigregister(TipProviderPtr)
  1512.  
  1513. class PyTipProvider(TipProvider):
  1514.     '''Proxy of C++ PyTipProvider class'''
  1515.     
  1516.     def __repr__(self):
  1517.         return '<%s.%s; proxy of C++ wxPyTipProvider instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1518.  
  1519.     
  1520.     def __init__(self, *args, **kwargs):
  1521.         '''__init__(self, size_t currentTip) -> PyTipProvider'''
  1522.         newobj = _misc_.new_PyTipProvider(*args, **kwargs)
  1523.         self.this = newobj.this
  1524.         self.thisown = 1
  1525.         del newobj.thisown
  1526.         self._setCallbackInfo(self, PyTipProvider)
  1527.  
  1528.     
  1529.     def _setCallbackInfo(*args, **kwargs):
  1530.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  1531.         return _misc_.PyTipProvider__setCallbackInfo(*args, **kwargs)
  1532.  
  1533.  
  1534.  
  1535. class PyTipProviderPtr(PyTipProvider):
  1536.     
  1537.     def __init__(self, this):
  1538.         self.this = this
  1539.         if not hasattr(self, 'thisown'):
  1540.             self.thisown = 0
  1541.         
  1542.         self.__class__ = PyTipProvider
  1543.  
  1544.  
  1545. _misc_.PyTipProvider_swigregister(PyTipProviderPtr)
  1546.  
  1547. def ShowTip(*args, **kwargs):
  1548.     '''ShowTip(Window parent, TipProvider tipProvider, bool showAtStartup=True) -> bool'''
  1549.     return _misc_.ShowTip(*args, **kwargs)
  1550.  
  1551.  
  1552. def CreateFileTipProvider(*args, **kwargs):
  1553.     '''CreateFileTipProvider(String filename, size_t currentTip) -> TipProvider'''
  1554.     return _misc_.CreateFileTipProvider(*args, **kwargs)
  1555.  
  1556. TIMER_CONTINUOUS = _misc_.TIMER_CONTINUOUS
  1557. TIMER_ONE_SHOT = _misc_.TIMER_ONE_SHOT
  1558. wxEVT_TIMER = _misc_.wxEVT_TIMER
  1559.  
  1560. class Timer(_core.EvtHandler):
  1561.     '''Proxy of C++ Timer class'''
  1562.     
  1563.     def __repr__(self):
  1564.         return '<%s.%s; proxy of C++ wxPyTimer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1565.  
  1566.     
  1567.     def __init__(self, *args, **kwargs):
  1568.         '''__init__(self, EvtHandler owner=None, int id=-1) -> Timer'''
  1569.         newobj = _misc_.new_Timer(*args, **kwargs)
  1570.         self.this = newobj.this
  1571.         self.thisown = 1
  1572.         del newobj.thisown
  1573.         self._setCallbackInfo(self, Timer, 0)
  1574.         self._setOORInfo(self, 0)
  1575.  
  1576.     
  1577.     def __del__(self, destroy = _misc_.delete_Timer):
  1578.         '''__del__(self)'''
  1579.         
  1580.         try:
  1581.             if self.thisown:
  1582.                 destroy(self)
  1583.         except:
  1584.             pass
  1585.  
  1586.  
  1587.     
  1588.     def _setCallbackInfo(*args, **kwargs):
  1589.         '''_setCallbackInfo(self, PyObject self, PyObject _class, int incref=1)'''
  1590.         return _misc_.Timer__setCallbackInfo(*args, **kwargs)
  1591.  
  1592.     
  1593.     def SetOwner(*args, **kwargs):
  1594.         '''SetOwner(self, EvtHandler owner, int id=-1)'''
  1595.         return _misc_.Timer_SetOwner(*args, **kwargs)
  1596.  
  1597.     
  1598.     def GetOwner(*args, **kwargs):
  1599.         '''GetOwner(self) -> EvtHandler'''
  1600.         return _misc_.Timer_GetOwner(*args, **kwargs)
  1601.  
  1602.     
  1603.     def Start(*args, **kwargs):
  1604.         '''Start(self, int milliseconds=-1, bool oneShot=False) -> bool'''
  1605.         return _misc_.Timer_Start(*args, **kwargs)
  1606.  
  1607.     
  1608.     def Stop(*args, **kwargs):
  1609.         '''Stop(self)'''
  1610.         return _misc_.Timer_Stop(*args, **kwargs)
  1611.  
  1612.     
  1613.     def IsRunning(*args, **kwargs):
  1614.         '''IsRunning(self) -> bool'''
  1615.         return _misc_.Timer_IsRunning(*args, **kwargs)
  1616.  
  1617.     
  1618.     def GetInterval(*args, **kwargs):
  1619.         '''GetInterval(self) -> int'''
  1620.         return _misc_.Timer_GetInterval(*args, **kwargs)
  1621.  
  1622.     
  1623.     def IsOneShot(*args, **kwargs):
  1624.         '''IsOneShot(self) -> bool'''
  1625.         return _misc_.Timer_IsOneShot(*args, **kwargs)
  1626.  
  1627.     
  1628.     def GetId(*args, **kwargs):
  1629.         '''GetId(self) -> int'''
  1630.         return _misc_.Timer_GetId(*args, **kwargs)
  1631.  
  1632.     
  1633.     def Destroy(self):
  1634.         '''NO-OP: Timers must be destroyed by normal reference counting'''
  1635.         pass
  1636.  
  1637.  
  1638.  
  1639. class TimerPtr(Timer):
  1640.     
  1641.     def __init__(self, this):
  1642.         self.this = this
  1643.         if not hasattr(self, 'thisown'):
  1644.             self.thisown = 0
  1645.         
  1646.         self.__class__ = Timer
  1647.  
  1648.  
  1649. _misc_.Timer_swigregister(TimerPtr)
  1650.  
  1651. class PyTimer(Timer):
  1652.     
  1653.     def __init__(self, notify):
  1654.         Timer.__init__(self)
  1655.         self.notify = notify
  1656.  
  1657.     
  1658.     def Notify(self):
  1659.         if self.notify:
  1660.             self.notify()
  1661.         
  1662.  
  1663.  
  1664. EVT_TIMER = wx.PyEventBinder(wxEVT_TIMER, 1)
  1665.  
  1666. class TimerEvent(_core.Event):
  1667.     '''Proxy of C++ TimerEvent class'''
  1668.     
  1669.     def __repr__(self):
  1670.         return '<%s.%s; proxy of C++ wxTimerEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1671.  
  1672.     
  1673.     def __init__(self, *args, **kwargs):
  1674.         '''__init__(self, int timerid=0, int interval=0) -> TimerEvent'''
  1675.         newobj = _misc_.new_TimerEvent(*args, **kwargs)
  1676.         self.this = newobj.this
  1677.         self.thisown = 1
  1678.         del newobj.thisown
  1679.  
  1680.     
  1681.     def GetInterval(*args, **kwargs):
  1682.         '''GetInterval(self) -> int'''
  1683.         return _misc_.TimerEvent_GetInterval(*args, **kwargs)
  1684.  
  1685.  
  1686.  
  1687. class TimerEventPtr(TimerEvent):
  1688.     
  1689.     def __init__(self, this):
  1690.         self.this = this
  1691.         if not hasattr(self, 'thisown'):
  1692.             self.thisown = 0
  1693.         
  1694.         self.__class__ = TimerEvent
  1695.  
  1696.  
  1697. _misc_.TimerEvent_swigregister(TimerEventPtr)
  1698.  
  1699. class TimerRunner(object):
  1700.     '''Proxy of C++ TimerRunner class'''
  1701.     
  1702.     def __repr__(self):
  1703.         return '<%s.%s; proxy of C++ wxTimerRunner instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1704.  
  1705.     
  1706.     def __init__(self, *args):
  1707.         '''
  1708.         __init__(self, wxTimer timer) -> TimerRunner
  1709.         __init__(self, wxTimer timer, int milli, bool oneShot=False) -> TimerRunner
  1710.         __init__(self, wxTimer timer, int milli) -> TimerRunner
  1711.         '''
  1712.         newobj = _misc_.new_TimerRunner(*args)
  1713.         self.this = newobj.this
  1714.         self.thisown = 1
  1715.         del newobj.thisown
  1716.  
  1717.     
  1718.     def __del__(self, destroy = _misc_.delete_TimerRunner):
  1719.         '''__del__(self)'''
  1720.         
  1721.         try:
  1722.             if self.thisown:
  1723.                 destroy(self)
  1724.         except:
  1725.             pass
  1726.  
  1727.  
  1728.     
  1729.     def Start(*args, **kwargs):
  1730.         '''Start(self, int milli, bool oneShot=False)'''
  1731.         return _misc_.TimerRunner_Start(*args, **kwargs)
  1732.  
  1733.  
  1734.  
  1735. class TimerRunnerPtr(TimerRunner):
  1736.     
  1737.     def __init__(self, this):
  1738.         self.this = this
  1739.         if not hasattr(self, 'thisown'):
  1740.             self.thisown = 0
  1741.         
  1742.         self.__class__ = TimerRunner
  1743.  
  1744.  
  1745. _misc_.TimerRunner_swigregister(TimerRunnerPtr)
  1746. LOG_FatalError = _misc_.LOG_FatalError
  1747. LOG_Error = _misc_.LOG_Error
  1748. LOG_Warning = _misc_.LOG_Warning
  1749. LOG_Message = _misc_.LOG_Message
  1750. LOG_Status = _misc_.LOG_Status
  1751. LOG_Info = _misc_.LOG_Info
  1752. LOG_Debug = _misc_.LOG_Debug
  1753. LOG_Trace = _misc_.LOG_Trace
  1754. LOG_Progress = _misc_.LOG_Progress
  1755. LOG_User = _misc_.LOG_User
  1756. LOG_Max = _misc_.LOG_Max
  1757. TRACE_MemAlloc = _misc_.TRACE_MemAlloc
  1758. TRACE_Messages = _misc_.TRACE_Messages
  1759. TRACE_ResAlloc = _misc_.TRACE_ResAlloc
  1760. TRACE_RefCount = _misc_.TRACE_RefCount
  1761. TRACE_OleCalls = _misc_.TRACE_OleCalls
  1762. TraceMemAlloc = _misc_.TraceMemAlloc
  1763. TraceMessages = _misc_.TraceMessages
  1764. TraceResAlloc = _misc_.TraceResAlloc
  1765. TraceRefCount = _misc_.TraceRefCount
  1766. TraceOleCalls = _misc_.TraceOleCalls
  1767.  
  1768. class Log(object):
  1769.     '''Proxy of C++ Log class'''
  1770.     
  1771.     def __repr__(self):
  1772.         return '<%s.%s; proxy of C++ wxLog instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  1773.  
  1774.     
  1775.     def __init__(self, *args, **kwargs):
  1776.         '''__init__(self) -> Log'''
  1777.         newobj = _misc_.new_Log(*args, **kwargs)
  1778.         self.this = newobj.this
  1779.         self.thisown = 1
  1780.         del newobj.thisown
  1781.  
  1782.     
  1783.     def IsEnabled(*args, **kwargs):
  1784.         '''IsEnabled() -> bool'''
  1785.         return _misc_.Log_IsEnabled(*args, **kwargs)
  1786.  
  1787.     IsEnabled = staticmethod(IsEnabled)
  1788.     
  1789.     def EnableLogging(*args, **kwargs):
  1790.         '''EnableLogging(bool doIt=True) -> bool'''
  1791.         return _misc_.Log_EnableLogging(*args, **kwargs)
  1792.  
  1793.     EnableLogging = staticmethod(EnableLogging)
  1794.     
  1795.     def OnLog(*args, **kwargs):
  1796.         '''OnLog(wxLogLevel level, wxChar szString, time_t t)'''
  1797.         return _misc_.Log_OnLog(*args, **kwargs)
  1798.  
  1799.     OnLog = staticmethod(OnLog)
  1800.     
  1801.     def Flush(*args, **kwargs):
  1802.         '''Flush(self)'''
  1803.         return _misc_.Log_Flush(*args, **kwargs)
  1804.  
  1805.     
  1806.     def FlushActive(*args, **kwargs):
  1807.         '''FlushActive()'''
  1808.         return _misc_.Log_FlushActive(*args, **kwargs)
  1809.  
  1810.     FlushActive = staticmethod(FlushActive)
  1811.     
  1812.     def GetActiveTarget(*args, **kwargs):
  1813.         '''GetActiveTarget() -> Log'''
  1814.         return _misc_.Log_GetActiveTarget(*args, **kwargs)
  1815.  
  1816.     GetActiveTarget = staticmethod(GetActiveTarget)
  1817.     
  1818.     def SetActiveTarget(*args, **kwargs):
  1819.         '''SetActiveTarget(Log pLogger) -> Log'''
  1820.         return _misc_.Log_SetActiveTarget(*args, **kwargs)
  1821.  
  1822.     SetActiveTarget = staticmethod(SetActiveTarget)
  1823.     
  1824.     def Suspend(*args, **kwargs):
  1825.         '''Suspend()'''
  1826.         return _misc_.Log_Suspend(*args, **kwargs)
  1827.  
  1828.     Suspend = staticmethod(Suspend)
  1829.     
  1830.     def Resume(*args, **kwargs):
  1831.         '''Resume()'''
  1832.         return _misc_.Log_Resume(*args, **kwargs)
  1833.  
  1834.     Resume = staticmethod(Resume)
  1835.     
  1836.     def SetVerbose(*args, **kwargs):
  1837.         '''SetVerbose(bool bVerbose=True)'''
  1838.         return _misc_.Log_SetVerbose(*args, **kwargs)
  1839.  
  1840.     SetVerbose = staticmethod(SetVerbose)
  1841.     
  1842.     def SetLogLevel(*args, **kwargs):
  1843.         '''SetLogLevel(wxLogLevel logLevel)'''
  1844.         return _misc_.Log_SetLogLevel(*args, **kwargs)
  1845.  
  1846.     SetLogLevel = staticmethod(SetLogLevel)
  1847.     
  1848.     def DontCreateOnDemand(*args, **kwargs):
  1849.         '''DontCreateOnDemand()'''
  1850.         return _misc_.Log_DontCreateOnDemand(*args, **kwargs)
  1851.  
  1852.     DontCreateOnDemand = staticmethod(DontCreateOnDemand)
  1853.     
  1854.     def SetTraceMask(*args, **kwargs):
  1855.         '''SetTraceMask(wxTraceMask ulMask)'''
  1856.         return _misc_.Log_SetTraceMask(*args, **kwargs)
  1857.  
  1858.     SetTraceMask = staticmethod(SetTraceMask)
  1859.     
  1860.     def AddTraceMask(*args, **kwargs):
  1861.         '''AddTraceMask(String str)'''
  1862.         return _misc_.Log_AddTraceMask(*args, **kwargs)
  1863.  
  1864.     AddTraceMask = staticmethod(AddTraceMask)
  1865.     
  1866.     def RemoveTraceMask(*args, **kwargs):
  1867.         '''RemoveTraceMask(String str)'''
  1868.         return _misc_.Log_RemoveTraceMask(*args, **kwargs)
  1869.  
  1870.     RemoveTraceMask = staticmethod(RemoveTraceMask)
  1871.     
  1872.     def ClearTraceMasks(*args, **kwargs):
  1873.         '''ClearTraceMasks()'''
  1874.         return _misc_.Log_ClearTraceMasks(*args, **kwargs)
  1875.  
  1876.     ClearTraceMasks = staticmethod(ClearTraceMasks)
  1877.     
  1878.     def GetTraceMasks(*args, **kwargs):
  1879.         '''GetTraceMasks() -> wxArrayString'''
  1880.         return _misc_.Log_GetTraceMasks(*args, **kwargs)
  1881.  
  1882.     GetTraceMasks = staticmethod(GetTraceMasks)
  1883.     
  1884.     def SetTimestamp(*args, **kwargs):
  1885.         '''SetTimestamp(wxChar ts)'''
  1886.         return _misc_.Log_SetTimestamp(*args, **kwargs)
  1887.  
  1888.     SetTimestamp = staticmethod(SetTimestamp)
  1889.     
  1890.     def GetVerbose(*args, **kwargs):
  1891.         '''GetVerbose() -> bool'''
  1892.         return _misc_.Log_GetVerbose(*args, **kwargs)
  1893.  
  1894.     GetVerbose = staticmethod(GetVerbose)
  1895.     
  1896.     def GetTraceMask(*args, **kwargs):
  1897.         '''GetTraceMask() -> wxTraceMask'''
  1898.         return _misc_.Log_GetTraceMask(*args, **kwargs)
  1899.  
  1900.     GetTraceMask = staticmethod(GetTraceMask)
  1901.     
  1902.     def IsAllowedTraceMask(*args, **kwargs):
  1903.         '''IsAllowedTraceMask(wxChar mask) -> bool'''
  1904.         return _misc_.Log_IsAllowedTraceMask(*args, **kwargs)
  1905.  
  1906.     IsAllowedTraceMask = staticmethod(IsAllowedTraceMask)
  1907.     
  1908.     def GetLogLevel(*args, **kwargs):
  1909.         '''GetLogLevel() -> wxLogLevel'''
  1910.         return _misc_.Log_GetLogLevel(*args, **kwargs)
  1911.  
  1912.     GetLogLevel = staticmethod(GetLogLevel)
  1913.     
  1914.     def GetTimestamp(*args, **kwargs):
  1915.         '''GetTimestamp() -> wxChar'''
  1916.         return _misc_.Log_GetTimestamp(*args, **kwargs)
  1917.  
  1918.     GetTimestamp = staticmethod(GetTimestamp)
  1919.     
  1920.     def TimeStamp(*args, **kwargs):
  1921.         '''TimeStamp() -> String'''
  1922.         return _misc_.Log_TimeStamp(*args, **kwargs)
  1923.  
  1924.     TimeStamp = staticmethod(TimeStamp)
  1925.     
  1926.     def Destroy(*args, **kwargs):
  1927.         '''Destroy(self)'''
  1928.         return _misc_.Log_Destroy(*args, **kwargs)
  1929.  
  1930.  
  1931.  
  1932. class LogPtr(Log):
  1933.     
  1934.     def __init__(self, this):
  1935.         self.this = this
  1936.         if not hasattr(self, 'thisown'):
  1937.             self.thisown = 0
  1938.         
  1939.         self.__class__ = Log
  1940.  
  1941.  
  1942. _misc_.Log_swigregister(LogPtr)
  1943.  
  1944. def Log_IsEnabled(*args, **kwargs):
  1945.     '''Log_IsEnabled() -> bool'''
  1946.     return _misc_.Log_IsEnabled(*args, **kwargs)
  1947.  
  1948.  
  1949. def Log_EnableLogging(*args, **kwargs):
  1950.     '''Log_EnableLogging(bool doIt=True) -> bool'''
  1951.     return _misc_.Log_EnableLogging(*args, **kwargs)
  1952.  
  1953.  
  1954. def Log_OnLog(*args, **kwargs):
  1955.     '''Log_OnLog(wxLogLevel level, wxChar szString, time_t t)'''
  1956.     return _misc_.Log_OnLog(*args, **kwargs)
  1957.  
  1958.  
  1959. def Log_FlushActive(*args, **kwargs):
  1960.     '''Log_FlushActive()'''
  1961.     return _misc_.Log_FlushActive(*args, **kwargs)
  1962.  
  1963.  
  1964. def Log_GetActiveTarget(*args, **kwargs):
  1965.     '''Log_GetActiveTarget() -> Log'''
  1966.     return _misc_.Log_GetActiveTarget(*args, **kwargs)
  1967.  
  1968.  
  1969. def Log_SetActiveTarget(*args, **kwargs):
  1970.     '''Log_SetActiveTarget(Log pLogger) -> Log'''
  1971.     return _misc_.Log_SetActiveTarget(*args, **kwargs)
  1972.  
  1973.  
  1974. def Log_Suspend(*args, **kwargs):
  1975.     '''Log_Suspend()'''
  1976.     return _misc_.Log_Suspend(*args, **kwargs)
  1977.  
  1978.  
  1979. def Log_Resume(*args, **kwargs):
  1980.     '''Log_Resume()'''
  1981.     return _misc_.Log_Resume(*args, **kwargs)
  1982.  
  1983.  
  1984. def Log_SetVerbose(*args, **kwargs):
  1985.     '''Log_SetVerbose(bool bVerbose=True)'''
  1986.     return _misc_.Log_SetVerbose(*args, **kwargs)
  1987.  
  1988.  
  1989. def Log_SetLogLevel(*args, **kwargs):
  1990.     '''Log_SetLogLevel(wxLogLevel logLevel)'''
  1991.     return _misc_.Log_SetLogLevel(*args, **kwargs)
  1992.  
  1993.  
  1994. def Log_DontCreateOnDemand(*args, **kwargs):
  1995.     '''Log_DontCreateOnDemand()'''
  1996.     return _misc_.Log_DontCreateOnDemand(*args, **kwargs)
  1997.  
  1998.  
  1999. def Log_SetTraceMask(*args, **kwargs):
  2000.     '''Log_SetTraceMask(wxTraceMask ulMask)'''
  2001.     return _misc_.Log_SetTraceMask(*args, **kwargs)
  2002.  
  2003.  
  2004. def Log_AddTraceMask(*args, **kwargs):
  2005.     '''Log_AddTraceMask(String str)'''
  2006.     return _misc_.Log_AddTraceMask(*args, **kwargs)
  2007.  
  2008.  
  2009. def Log_RemoveTraceMask(*args, **kwargs):
  2010.     '''Log_RemoveTraceMask(String str)'''
  2011.     return _misc_.Log_RemoveTraceMask(*args, **kwargs)
  2012.  
  2013.  
  2014. def Log_ClearTraceMasks(*args, **kwargs):
  2015.     '''Log_ClearTraceMasks()'''
  2016.     return _misc_.Log_ClearTraceMasks(*args, **kwargs)
  2017.  
  2018.  
  2019. def Log_GetTraceMasks(*args, **kwargs):
  2020.     '''Log_GetTraceMasks() -> wxArrayString'''
  2021.     return _misc_.Log_GetTraceMasks(*args, **kwargs)
  2022.  
  2023.  
  2024. def Log_SetTimestamp(*args, **kwargs):
  2025.     '''Log_SetTimestamp(wxChar ts)'''
  2026.     return _misc_.Log_SetTimestamp(*args, **kwargs)
  2027.  
  2028.  
  2029. def Log_GetVerbose(*args, **kwargs):
  2030.     '''Log_GetVerbose() -> bool'''
  2031.     return _misc_.Log_GetVerbose(*args, **kwargs)
  2032.  
  2033.  
  2034. def Log_GetTraceMask(*args, **kwargs):
  2035.     '''Log_GetTraceMask() -> wxTraceMask'''
  2036.     return _misc_.Log_GetTraceMask(*args, **kwargs)
  2037.  
  2038.  
  2039. def Log_IsAllowedTraceMask(*args, **kwargs):
  2040.     '''Log_IsAllowedTraceMask(wxChar mask) -> bool'''
  2041.     return _misc_.Log_IsAllowedTraceMask(*args, **kwargs)
  2042.  
  2043.  
  2044. def Log_GetLogLevel(*args, **kwargs):
  2045.     '''Log_GetLogLevel() -> wxLogLevel'''
  2046.     return _misc_.Log_GetLogLevel(*args, **kwargs)
  2047.  
  2048.  
  2049. def Log_GetTimestamp(*args, **kwargs):
  2050.     '''Log_GetTimestamp() -> wxChar'''
  2051.     return _misc_.Log_GetTimestamp(*args, **kwargs)
  2052.  
  2053.  
  2054. def Log_TimeStamp(*args, **kwargs):
  2055.     '''Log_TimeStamp() -> String'''
  2056.     return _misc_.Log_TimeStamp(*args, **kwargs)
  2057.  
  2058.  
  2059. class LogStderr(Log):
  2060.     '''Proxy of C++ LogStderr class'''
  2061.     
  2062.     def __repr__(self):
  2063.         return '<%s.%s; proxy of C++ wxLogStderr instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2064.  
  2065.     
  2066.     def __init__(self, *args, **kwargs):
  2067.         '''__init__(self) -> LogStderr'''
  2068.         newobj = _misc_.new_LogStderr(*args, **kwargs)
  2069.         self.this = newobj.this
  2070.         self.thisown = 1
  2071.         del newobj.thisown
  2072.  
  2073.  
  2074.  
  2075. class LogStderrPtr(LogStderr):
  2076.     
  2077.     def __init__(self, this):
  2078.         self.this = this
  2079.         if not hasattr(self, 'thisown'):
  2080.             self.thisown = 0
  2081.         
  2082.         self.__class__ = LogStderr
  2083.  
  2084.  
  2085. _misc_.LogStderr_swigregister(LogStderrPtr)
  2086.  
  2087. class LogTextCtrl(Log):
  2088.     '''Proxy of C++ LogTextCtrl class'''
  2089.     
  2090.     def __repr__(self):
  2091.         return '<%s.%s; proxy of C++ wxLogTextCtrl instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2092.  
  2093.     
  2094.     def __init__(self, *args, **kwargs):
  2095.         '''__init__(self, wxTextCtrl pTextCtrl) -> LogTextCtrl'''
  2096.         newobj = _misc_.new_LogTextCtrl(*args, **kwargs)
  2097.         self.this = newobj.this
  2098.         self.thisown = 1
  2099.         del newobj.thisown
  2100.  
  2101.  
  2102.  
  2103. class LogTextCtrlPtr(LogTextCtrl):
  2104.     
  2105.     def __init__(self, this):
  2106.         self.this = this
  2107.         if not hasattr(self, 'thisown'):
  2108.             self.thisown = 0
  2109.         
  2110.         self.__class__ = LogTextCtrl
  2111.  
  2112.  
  2113. _misc_.LogTextCtrl_swigregister(LogTextCtrlPtr)
  2114.  
  2115. class LogGui(Log):
  2116.     '''Proxy of C++ LogGui class'''
  2117.     
  2118.     def __repr__(self):
  2119.         return '<%s.%s; proxy of C++ wxLogGui instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2120.  
  2121.     
  2122.     def __init__(self, *args, **kwargs):
  2123.         '''__init__(self) -> LogGui'''
  2124.         newobj = _misc_.new_LogGui(*args, **kwargs)
  2125.         self.this = newobj.this
  2126.         self.thisown = 1
  2127.         del newobj.thisown
  2128.  
  2129.  
  2130.  
  2131. class LogGuiPtr(LogGui):
  2132.     
  2133.     def __init__(self, this):
  2134.         self.this = this
  2135.         if not hasattr(self, 'thisown'):
  2136.             self.thisown = 0
  2137.         
  2138.         self.__class__ = LogGui
  2139.  
  2140.  
  2141. _misc_.LogGui_swigregister(LogGuiPtr)
  2142.  
  2143. class LogWindow(Log):
  2144.     '''Proxy of C++ LogWindow class'''
  2145.     
  2146.     def __repr__(self):
  2147.         return '<%s.%s; proxy of C++ wxLogWindow instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2148.  
  2149.     
  2150.     def __init__(self, *args, **kwargs):
  2151.         '''__init__(self, wxFrame pParent, String szTitle, bool bShow=True, bool bPassToOld=True) -> LogWindow'''
  2152.         newobj = _misc_.new_LogWindow(*args, **kwargs)
  2153.         self.this = newobj.this
  2154.         self.thisown = 1
  2155.         del newobj.thisown
  2156.  
  2157.     
  2158.     def Show(*args, **kwargs):
  2159.         '''Show(self, bool bShow=True)'''
  2160.         return _misc_.LogWindow_Show(*args, **kwargs)
  2161.  
  2162.     
  2163.     def GetFrame(*args, **kwargs):
  2164.         '''GetFrame(self) -> wxFrame'''
  2165.         return _misc_.LogWindow_GetFrame(*args, **kwargs)
  2166.  
  2167.     
  2168.     def GetOldLog(*args, **kwargs):
  2169.         '''GetOldLog(self) -> Log'''
  2170.         return _misc_.LogWindow_GetOldLog(*args, **kwargs)
  2171.  
  2172.     
  2173.     def IsPassingMessages(*args, **kwargs):
  2174.         '''IsPassingMessages(self) -> bool'''
  2175.         return _misc_.LogWindow_IsPassingMessages(*args, **kwargs)
  2176.  
  2177.     
  2178.     def PassMessages(*args, **kwargs):
  2179.         '''PassMessages(self, bool bDoPass)'''
  2180.         return _misc_.LogWindow_PassMessages(*args, **kwargs)
  2181.  
  2182.  
  2183.  
  2184. class LogWindowPtr(LogWindow):
  2185.     
  2186.     def __init__(self, this):
  2187.         self.this = this
  2188.         if not hasattr(self, 'thisown'):
  2189.             self.thisown = 0
  2190.         
  2191.         self.__class__ = LogWindow
  2192.  
  2193.  
  2194. _misc_.LogWindow_swigregister(LogWindowPtr)
  2195.  
  2196. class LogChain(Log):
  2197.     '''Proxy of C++ LogChain class'''
  2198.     
  2199.     def __repr__(self):
  2200.         return '<%s.%s; proxy of C++ wxLogChain instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2201.  
  2202.     
  2203.     def __init__(self, *args, **kwargs):
  2204.         '''__init__(self, Log logger) -> LogChain'''
  2205.         newobj = _misc_.new_LogChain(*args, **kwargs)
  2206.         self.this = newobj.this
  2207.         self.thisown = 1
  2208.         del newobj.thisown
  2209.  
  2210.     
  2211.     def SetLog(*args, **kwargs):
  2212.         '''SetLog(self, Log logger)'''
  2213.         return _misc_.LogChain_SetLog(*args, **kwargs)
  2214.  
  2215.     
  2216.     def PassMessages(*args, **kwargs):
  2217.         '''PassMessages(self, bool bDoPass)'''
  2218.         return _misc_.LogChain_PassMessages(*args, **kwargs)
  2219.  
  2220.     
  2221.     def IsPassingMessages(*args, **kwargs):
  2222.         '''IsPassingMessages(self) -> bool'''
  2223.         return _misc_.LogChain_IsPassingMessages(*args, **kwargs)
  2224.  
  2225.     
  2226.     def GetOldLog(*args, **kwargs):
  2227.         '''GetOldLog(self) -> Log'''
  2228.         return _misc_.LogChain_GetOldLog(*args, **kwargs)
  2229.  
  2230.  
  2231.  
  2232. class LogChainPtr(LogChain):
  2233.     
  2234.     def __init__(self, this):
  2235.         self.this = this
  2236.         if not hasattr(self, 'thisown'):
  2237.             self.thisown = 0
  2238.         
  2239.         self.__class__ = LogChain
  2240.  
  2241.  
  2242. _misc_.LogChain_swigregister(LogChainPtr)
  2243.  
  2244. class LogBuffer(Log):
  2245.     '''Proxy of C++ LogBuffer class'''
  2246.     
  2247.     def __repr__(self):
  2248.         return '<%s.%s; proxy of C++ wxLogBuffer instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2249.  
  2250.     
  2251.     def __init__(self, *args, **kwargs):
  2252.         '''__init__(self) -> LogBuffer'''
  2253.         newobj = _misc_.new_LogBuffer(*args, **kwargs)
  2254.         self.this = newobj.this
  2255.         self.thisown = 1
  2256.         del newobj.thisown
  2257.  
  2258.     
  2259.     def GetBuffer(*args, **kwargs):
  2260.         '''GetBuffer(self) -> String'''
  2261.         return _misc_.LogBuffer_GetBuffer(*args, **kwargs)
  2262.  
  2263.     
  2264.     def Flush(*args, **kwargs):
  2265.         '''Flush(self)'''
  2266.         return _misc_.LogBuffer_Flush(*args, **kwargs)
  2267.  
  2268.  
  2269.  
  2270. class LogBufferPtr(LogBuffer):
  2271.     
  2272.     def __init__(self, this):
  2273.         self.this = this
  2274.         if not hasattr(self, 'thisown'):
  2275.             self.thisown = 0
  2276.         
  2277.         self.__class__ = LogBuffer
  2278.  
  2279.  
  2280. _misc_.LogBuffer_swigregister(LogBufferPtr)
  2281.  
  2282. def SysErrorCode(*args, **kwargs):
  2283.     '''SysErrorCode() -> unsigned long'''
  2284.     return _misc_.SysErrorCode(*args, **kwargs)
  2285.  
  2286.  
  2287. def SysErrorMsg(*args, **kwargs):
  2288.     '''SysErrorMsg(unsigned long nErrCode=0) -> String'''
  2289.     return _misc_.SysErrorMsg(*args, **kwargs)
  2290.  
  2291.  
  2292. def LogFatalError(*args, **kwargs):
  2293.     '''LogFatalError(String msg)'''
  2294.     return _misc_.LogFatalError(*args, **kwargs)
  2295.  
  2296.  
  2297. def LogError(*args, **kwargs):
  2298.     '''LogError(String msg)'''
  2299.     return _misc_.LogError(*args, **kwargs)
  2300.  
  2301.  
  2302. def LogWarning(*args, **kwargs):
  2303.     '''LogWarning(String msg)'''
  2304.     return _misc_.LogWarning(*args, **kwargs)
  2305.  
  2306.  
  2307. def LogMessage(*args, **kwargs):
  2308.     '''LogMessage(String msg)'''
  2309.     return _misc_.LogMessage(*args, **kwargs)
  2310.  
  2311.  
  2312. def LogInfo(*args, **kwargs):
  2313.     '''LogInfo(String msg)'''
  2314.     return _misc_.LogInfo(*args, **kwargs)
  2315.  
  2316.  
  2317. def LogDebug(*args, **kwargs):
  2318.     '''LogDebug(String msg)'''
  2319.     return _misc_.LogDebug(*args, **kwargs)
  2320.  
  2321.  
  2322. def LogVerbose(*args, **kwargs):
  2323.     '''LogVerbose(String msg)'''
  2324.     return _misc_.LogVerbose(*args, **kwargs)
  2325.  
  2326.  
  2327. def LogStatus(*args, **kwargs):
  2328.     '''LogStatus(String msg)'''
  2329.     return _misc_.LogStatus(*args, **kwargs)
  2330.  
  2331.  
  2332. def LogStatusFrame(*args, **kwargs):
  2333.     '''LogStatusFrame(wxFrame pFrame, String msg)'''
  2334.     return _misc_.LogStatusFrame(*args, **kwargs)
  2335.  
  2336.  
  2337. def LogSysError(*args, **kwargs):
  2338.     '''LogSysError(String msg)'''
  2339.     return _misc_.LogSysError(*args, **kwargs)
  2340.  
  2341.  
  2342. def LogGeneric(*args, **kwargs):
  2343.     '''LogGeneric(unsigned long level, String msg)'''
  2344.     return _misc_.LogGeneric(*args, **kwargs)
  2345.  
  2346.  
  2347. def SafeShowMessage(*args, **kwargs):
  2348.     '''SafeShowMessage(String title, String text)'''
  2349.     return _misc_.SafeShowMessage(*args, **kwargs)
  2350.  
  2351.  
  2352. class LogNull(object):
  2353.     '''Proxy of C++ LogNull class'''
  2354.     
  2355.     def __repr__(self):
  2356.         return '<%s.%s; proxy of C++ wxLogNull instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2357.  
  2358.     
  2359.     def __init__(self, *args, **kwargs):
  2360.         '''__init__(self) -> LogNull'''
  2361.         newobj = _misc_.new_LogNull(*args, **kwargs)
  2362.         self.this = newobj.this
  2363.         self.thisown = 1
  2364.         del newobj.thisown
  2365.  
  2366.     
  2367.     def __del__(self, destroy = _misc_.delete_LogNull):
  2368.         '''__del__(self)'''
  2369.         
  2370.         try:
  2371.             if self.thisown:
  2372.                 destroy(self)
  2373.         except:
  2374.             pass
  2375.  
  2376.  
  2377.  
  2378.  
  2379. class LogNullPtr(LogNull):
  2380.     
  2381.     def __init__(self, this):
  2382.         self.this = this
  2383.         if not hasattr(self, 'thisown'):
  2384.             self.thisown = 0
  2385.         
  2386.         self.__class__ = LogNull
  2387.  
  2388.  
  2389. _misc_.LogNull_swigregister(LogNullPtr)
  2390.  
  2391. def LogTrace(*args):
  2392.     '''
  2393.     LogTrace(unsigned long mask, String msg)
  2394.     LogTrace(String mask, String msg)
  2395.     '''
  2396.     return _misc_.LogTrace(*args)
  2397.  
  2398.  
  2399. class PyLog(Log):
  2400.     '''Proxy of C++ PyLog class'''
  2401.     
  2402.     def __repr__(self):
  2403.         return '<%s.%s; proxy of C++ wxPyLog instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2404.  
  2405.     
  2406.     def __init__(self, *args, **kwargs):
  2407.         '''__init__(self) -> PyLog'''
  2408.         newobj = _misc_.new_PyLog(*args, **kwargs)
  2409.         self.this = newobj.this
  2410.         self.thisown = 1
  2411.         del newobj.thisown
  2412.         self._setCallbackInfo(self, PyLog)
  2413.  
  2414.     
  2415.     def _setCallbackInfo(*args, **kwargs):
  2416.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  2417.         return _misc_.PyLog__setCallbackInfo(*args, **kwargs)
  2418.  
  2419.  
  2420.  
  2421. class PyLogPtr(PyLog):
  2422.     
  2423.     def __init__(self, this):
  2424.         self.this = this
  2425.         if not hasattr(self, 'thisown'):
  2426.             self.thisown = 0
  2427.         
  2428.         self.__class__ = PyLog
  2429.  
  2430.  
  2431. _misc_.PyLog_swigregister(PyLogPtr)
  2432. PROCESS_DEFAULT = _misc_.PROCESS_DEFAULT
  2433. PROCESS_REDIRECT = _misc_.PROCESS_REDIRECT
  2434. KILL_OK = _misc_.KILL_OK
  2435. KILL_BAD_SIGNAL = _misc_.KILL_BAD_SIGNAL
  2436. KILL_ACCESS_DENIED = _misc_.KILL_ACCESS_DENIED
  2437. KILL_NO_PROCESS = _misc_.KILL_NO_PROCESS
  2438. KILL_ERROR = _misc_.KILL_ERROR
  2439. KILL_NOCHILDREN = _misc_.KILL_NOCHILDREN
  2440. KILL_CHILDREN = _misc_.KILL_CHILDREN
  2441. SIGNONE = _misc_.SIGNONE
  2442. SIGHUP = _misc_.SIGHUP
  2443. SIGINT = _misc_.SIGINT
  2444. SIGQUIT = _misc_.SIGQUIT
  2445. SIGILL = _misc_.SIGILL
  2446. SIGTRAP = _misc_.SIGTRAP
  2447. SIGABRT = _misc_.SIGABRT
  2448. SIGIOT = _misc_.SIGIOT
  2449. SIGEMT = _misc_.SIGEMT
  2450. SIGFPE = _misc_.SIGFPE
  2451. SIGKILL = _misc_.SIGKILL
  2452. SIGBUS = _misc_.SIGBUS
  2453. SIGSEGV = _misc_.SIGSEGV
  2454. SIGSYS = _misc_.SIGSYS
  2455. SIGPIPE = _misc_.SIGPIPE
  2456. SIGALRM = _misc_.SIGALRM
  2457. SIGTERM = _misc_.SIGTERM
  2458.  
  2459. class Process(_core.EvtHandler):
  2460.     '''Proxy of C++ Process class'''
  2461.     
  2462.     def __repr__(self):
  2463.         return '<%s.%s; proxy of C++ wxPyProcess instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2464.  
  2465.     
  2466.     def Kill(*args, **kwargs):
  2467.         '''Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int'''
  2468.         return _misc_.Process_Kill(*args, **kwargs)
  2469.  
  2470.     Kill = staticmethod(Kill)
  2471.     
  2472.     def Exists(*args, **kwargs):
  2473.         '''Exists(int pid) -> bool'''
  2474.         return _misc_.Process_Exists(*args, **kwargs)
  2475.  
  2476.     Exists = staticmethod(Exists)
  2477.     
  2478.     def Open(*args, **kwargs):
  2479.         '''Open(String cmd, int flags=EXEC_ASYNC) -> Process'''
  2480.         return _misc_.Process_Open(*args, **kwargs)
  2481.  
  2482.     Open = staticmethod(Open)
  2483.     
  2484.     def __init__(self, *args, **kwargs):
  2485.         '''__init__(self, EvtHandler parent=None, int id=-1) -> Process'''
  2486.         newobj = _misc_.new_Process(*args, **kwargs)
  2487.         self.this = newobj.this
  2488.         self.thisown = 1
  2489.         del newobj.thisown
  2490.         self._setCallbackInfo(self, Process)
  2491.  
  2492.     
  2493.     def _setCallbackInfo(*args, **kwargs):
  2494.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  2495.         return _misc_.Process__setCallbackInfo(*args, **kwargs)
  2496.  
  2497.     
  2498.     def base_OnTerminate(*args, **kwargs):
  2499.         '''base_OnTerminate(self, int pid, int status)'''
  2500.         return _misc_.Process_base_OnTerminate(*args, **kwargs)
  2501.  
  2502.     
  2503.     def Redirect(*args, **kwargs):
  2504.         '''Redirect(self)'''
  2505.         return _misc_.Process_Redirect(*args, **kwargs)
  2506.  
  2507.     
  2508.     def IsRedirected(*args, **kwargs):
  2509.         '''IsRedirected(self) -> bool'''
  2510.         return _misc_.Process_IsRedirected(*args, **kwargs)
  2511.  
  2512.     
  2513.     def Detach(*args, **kwargs):
  2514.         '''Detach(self)'''
  2515.         return _misc_.Process_Detach(*args, **kwargs)
  2516.  
  2517.     
  2518.     def GetInputStream(*args, **kwargs):
  2519.         '''GetInputStream(self) -> InputStream'''
  2520.         return _misc_.Process_GetInputStream(*args, **kwargs)
  2521.  
  2522.     
  2523.     def GetErrorStream(*args, **kwargs):
  2524.         '''GetErrorStream(self) -> InputStream'''
  2525.         return _misc_.Process_GetErrorStream(*args, **kwargs)
  2526.  
  2527.     
  2528.     def GetOutputStream(*args, **kwargs):
  2529.         '''GetOutputStream(self) -> OutputStream'''
  2530.         return _misc_.Process_GetOutputStream(*args, **kwargs)
  2531.  
  2532.     
  2533.     def CloseOutput(*args, **kwargs):
  2534.         '''CloseOutput(self)'''
  2535.         return _misc_.Process_CloseOutput(*args, **kwargs)
  2536.  
  2537.     
  2538.     def IsInputOpened(*args, **kwargs):
  2539.         '''IsInputOpened(self) -> bool'''
  2540.         return _misc_.Process_IsInputOpened(*args, **kwargs)
  2541.  
  2542.     
  2543.     def IsInputAvailable(*args, **kwargs):
  2544.         '''IsInputAvailable(self) -> bool'''
  2545.         return _misc_.Process_IsInputAvailable(*args, **kwargs)
  2546.  
  2547.     
  2548.     def IsErrorAvailable(*args, **kwargs):
  2549.         '''IsErrorAvailable(self) -> bool'''
  2550.         return _misc_.Process_IsErrorAvailable(*args, **kwargs)
  2551.  
  2552.  
  2553.  
  2554. class ProcessPtr(Process):
  2555.     
  2556.     def __init__(self, this):
  2557.         self.this = this
  2558.         if not hasattr(self, 'thisown'):
  2559.             self.thisown = 0
  2560.         
  2561.         self.__class__ = Process
  2562.  
  2563.  
  2564. _misc_.Process_swigregister(ProcessPtr)
  2565.  
  2566. def Process_Kill(*args, **kwargs):
  2567.     '''Process_Kill(int pid, int sig=SIGTERM, int flags=KILL_NOCHILDREN) -> int'''
  2568.     return _misc_.Process_Kill(*args, **kwargs)
  2569.  
  2570.  
  2571. def Process_Exists(*args, **kwargs):
  2572.     '''Process_Exists(int pid) -> bool'''
  2573.     return _misc_.Process_Exists(*args, **kwargs)
  2574.  
  2575.  
  2576. def Process_Open(*args, **kwargs):
  2577.     '''Process_Open(String cmd, int flags=EXEC_ASYNC) -> Process'''
  2578.     return _misc_.Process_Open(*args, **kwargs)
  2579.  
  2580.  
  2581. class ProcessEvent(_core.Event):
  2582.     '''Proxy of C++ ProcessEvent class'''
  2583.     
  2584.     def __repr__(self):
  2585.         return '<%s.%s; proxy of C++ wxProcessEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2586.  
  2587.     
  2588.     def __init__(self, *args, **kwargs):
  2589.         '''__init__(self, int id=0, int pid=0, int exitcode=0) -> ProcessEvent'''
  2590.         newobj = _misc_.new_ProcessEvent(*args, **kwargs)
  2591.         self.this = newobj.this
  2592.         self.thisown = 1
  2593.         del newobj.thisown
  2594.  
  2595.     
  2596.     def GetPid(*args, **kwargs):
  2597.         '''GetPid(self) -> int'''
  2598.         return _misc_.ProcessEvent_GetPid(*args, **kwargs)
  2599.  
  2600.     
  2601.     def GetExitCode(*args, **kwargs):
  2602.         '''GetExitCode(self) -> int'''
  2603.         return _misc_.ProcessEvent_GetExitCode(*args, **kwargs)
  2604.  
  2605.     m_pid = property(_misc_.ProcessEvent_m_pid_get, _misc_.ProcessEvent_m_pid_set)
  2606.     m_exitcode = property(_misc_.ProcessEvent_m_exitcode_get, _misc_.ProcessEvent_m_exitcode_set)
  2607.  
  2608.  
  2609. class ProcessEventPtr(ProcessEvent):
  2610.     
  2611.     def __init__(self, this):
  2612.         self.this = this
  2613.         if not hasattr(self, 'thisown'):
  2614.             self.thisown = 0
  2615.         
  2616.         self.__class__ = ProcessEvent
  2617.  
  2618.  
  2619. _misc_.ProcessEvent_swigregister(ProcessEventPtr)
  2620. wxEVT_END_PROCESS = _misc_.wxEVT_END_PROCESS
  2621. EVT_END_PROCESS = wx.PyEventBinder(wxEVT_END_PROCESS, 1)
  2622. EXEC_ASYNC = _misc_.EXEC_ASYNC
  2623. EXEC_SYNC = _misc_.EXEC_SYNC
  2624. EXEC_NOHIDE = _misc_.EXEC_NOHIDE
  2625. EXEC_MAKE_GROUP_LEADER = _misc_.EXEC_MAKE_GROUP_LEADER
  2626. EXEC_NODISABLE = _misc_.EXEC_NODISABLE
  2627.  
  2628. def Execute(*args, **kwargs):
  2629.     '''Execute(String command, int flags=EXEC_ASYNC, Process process=None) -> long'''
  2630.     return _misc_.Execute(*args, **kwargs)
  2631.  
  2632.  
  2633. def Kill(*args, **kwargs):
  2634.     '''Kill(long pid, int sig=SIGTERM, int rc, int flags=KILL_NOCHILDREN) -> int'''
  2635.     return _misc_.Kill(*args, **kwargs)
  2636.  
  2637. JOYSTICK1 = _misc_.JOYSTICK1
  2638. JOYSTICK2 = _misc_.JOYSTICK2
  2639. JOY_BUTTON_ANY = _misc_.JOY_BUTTON_ANY
  2640. JOY_BUTTON1 = _misc_.JOY_BUTTON1
  2641. JOY_BUTTON2 = _misc_.JOY_BUTTON2
  2642. JOY_BUTTON3 = _misc_.JOY_BUTTON3
  2643. JOY_BUTTON4 = _misc_.JOY_BUTTON4
  2644.  
  2645. class Joystick(object):
  2646.     '''Proxy of C++ Joystick class'''
  2647.     
  2648.     def __repr__(self):
  2649.         return '<%s.%s; proxy of C++ wxJoystick instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2650.  
  2651.     
  2652.     def __init__(self, *args, **kwargs):
  2653.         '''__init__(self, int joystick=JOYSTICK1) -> Joystick'''
  2654.         newobj = _misc_.new_Joystick(*args, **kwargs)
  2655.         self.this = newobj.this
  2656.         self.thisown = 1
  2657.         del newobj.thisown
  2658.  
  2659.     
  2660.     def __del__(self, destroy = _misc_.delete_Joystick):
  2661.         '''__del__(self)'''
  2662.         
  2663.         try:
  2664.             if self.thisown:
  2665.                 destroy(self)
  2666.         except:
  2667.             pass
  2668.  
  2669.  
  2670.     
  2671.     def GetPosition(*args, **kwargs):
  2672.         '''GetPosition(self) -> Point'''
  2673.         return _misc_.Joystick_GetPosition(*args, **kwargs)
  2674.  
  2675.     
  2676.     def GetZPosition(*args, **kwargs):
  2677.         '''GetZPosition(self) -> int'''
  2678.         return _misc_.Joystick_GetZPosition(*args, **kwargs)
  2679.  
  2680.     
  2681.     def GetButtonState(*args, **kwargs):
  2682.         '''GetButtonState(self) -> int'''
  2683.         return _misc_.Joystick_GetButtonState(*args, **kwargs)
  2684.  
  2685.     
  2686.     def GetPOVPosition(*args, **kwargs):
  2687.         '''GetPOVPosition(self) -> int'''
  2688.         return _misc_.Joystick_GetPOVPosition(*args, **kwargs)
  2689.  
  2690.     
  2691.     def GetPOVCTSPosition(*args, **kwargs):
  2692.         '''GetPOVCTSPosition(self) -> int'''
  2693.         return _misc_.Joystick_GetPOVCTSPosition(*args, **kwargs)
  2694.  
  2695.     
  2696.     def GetRudderPosition(*args, **kwargs):
  2697.         '''GetRudderPosition(self) -> int'''
  2698.         return _misc_.Joystick_GetRudderPosition(*args, **kwargs)
  2699.  
  2700.     
  2701.     def GetUPosition(*args, **kwargs):
  2702.         '''GetUPosition(self) -> int'''
  2703.         return _misc_.Joystick_GetUPosition(*args, **kwargs)
  2704.  
  2705.     
  2706.     def GetVPosition(*args, **kwargs):
  2707.         '''GetVPosition(self) -> int'''
  2708.         return _misc_.Joystick_GetVPosition(*args, **kwargs)
  2709.  
  2710.     
  2711.     def GetMovementThreshold(*args, **kwargs):
  2712.         '''GetMovementThreshold(self) -> int'''
  2713.         return _misc_.Joystick_GetMovementThreshold(*args, **kwargs)
  2714.  
  2715.     
  2716.     def SetMovementThreshold(*args, **kwargs):
  2717.         '''SetMovementThreshold(self, int threshold)'''
  2718.         return _misc_.Joystick_SetMovementThreshold(*args, **kwargs)
  2719.  
  2720.     
  2721.     def IsOk(*args, **kwargs):
  2722.         '''IsOk(self) -> bool'''
  2723.         return _misc_.Joystick_IsOk(*args, **kwargs)
  2724.  
  2725.     
  2726.     def GetNumberJoysticks(*args, **kwargs):
  2727.         '''GetNumberJoysticks(self) -> int'''
  2728.         return _misc_.Joystick_GetNumberJoysticks(*args, **kwargs)
  2729.  
  2730.     
  2731.     def GetManufacturerId(*args, **kwargs):
  2732.         '''GetManufacturerId(self) -> int'''
  2733.         return _misc_.Joystick_GetManufacturerId(*args, **kwargs)
  2734.  
  2735.     
  2736.     def GetProductId(*args, **kwargs):
  2737.         '''GetProductId(self) -> int'''
  2738.         return _misc_.Joystick_GetProductId(*args, **kwargs)
  2739.  
  2740.     
  2741.     def GetProductName(*args, **kwargs):
  2742.         '''GetProductName(self) -> String'''
  2743.         return _misc_.Joystick_GetProductName(*args, **kwargs)
  2744.  
  2745.     
  2746.     def GetXMin(*args, **kwargs):
  2747.         '''GetXMin(self) -> int'''
  2748.         return _misc_.Joystick_GetXMin(*args, **kwargs)
  2749.  
  2750.     
  2751.     def GetYMin(*args, **kwargs):
  2752.         '''GetYMin(self) -> int'''
  2753.         return _misc_.Joystick_GetYMin(*args, **kwargs)
  2754.  
  2755.     
  2756.     def GetZMin(*args, **kwargs):
  2757.         '''GetZMin(self) -> int'''
  2758.         return _misc_.Joystick_GetZMin(*args, **kwargs)
  2759.  
  2760.     
  2761.     def GetXMax(*args, **kwargs):
  2762.         '''GetXMax(self) -> int'''
  2763.         return _misc_.Joystick_GetXMax(*args, **kwargs)
  2764.  
  2765.     
  2766.     def GetYMax(*args, **kwargs):
  2767.         '''GetYMax(self) -> int'''
  2768.         return _misc_.Joystick_GetYMax(*args, **kwargs)
  2769.  
  2770.     
  2771.     def GetZMax(*args, **kwargs):
  2772.         '''GetZMax(self) -> int'''
  2773.         return _misc_.Joystick_GetZMax(*args, **kwargs)
  2774.  
  2775.     
  2776.     def GetNumberButtons(*args, **kwargs):
  2777.         '''GetNumberButtons(self) -> int'''
  2778.         return _misc_.Joystick_GetNumberButtons(*args, **kwargs)
  2779.  
  2780.     
  2781.     def GetNumberAxes(*args, **kwargs):
  2782.         '''GetNumberAxes(self) -> int'''
  2783.         return _misc_.Joystick_GetNumberAxes(*args, **kwargs)
  2784.  
  2785.     
  2786.     def GetMaxButtons(*args, **kwargs):
  2787.         '''GetMaxButtons(self) -> int'''
  2788.         return _misc_.Joystick_GetMaxButtons(*args, **kwargs)
  2789.  
  2790.     
  2791.     def GetMaxAxes(*args, **kwargs):
  2792.         '''GetMaxAxes(self) -> int'''
  2793.         return _misc_.Joystick_GetMaxAxes(*args, **kwargs)
  2794.  
  2795.     
  2796.     def GetPollingMin(*args, **kwargs):
  2797.         '''GetPollingMin(self) -> int'''
  2798.         return _misc_.Joystick_GetPollingMin(*args, **kwargs)
  2799.  
  2800.     
  2801.     def GetPollingMax(*args, **kwargs):
  2802.         '''GetPollingMax(self) -> int'''
  2803.         return _misc_.Joystick_GetPollingMax(*args, **kwargs)
  2804.  
  2805.     
  2806.     def GetRudderMin(*args, **kwargs):
  2807.         '''GetRudderMin(self) -> int'''
  2808.         return _misc_.Joystick_GetRudderMin(*args, **kwargs)
  2809.  
  2810.     
  2811.     def GetRudderMax(*args, **kwargs):
  2812.         '''GetRudderMax(self) -> int'''
  2813.         return _misc_.Joystick_GetRudderMax(*args, **kwargs)
  2814.  
  2815.     
  2816.     def GetUMin(*args, **kwargs):
  2817.         '''GetUMin(self) -> int'''
  2818.         return _misc_.Joystick_GetUMin(*args, **kwargs)
  2819.  
  2820.     
  2821.     def GetUMax(*args, **kwargs):
  2822.         '''GetUMax(self) -> int'''
  2823.         return _misc_.Joystick_GetUMax(*args, **kwargs)
  2824.  
  2825.     
  2826.     def GetVMin(*args, **kwargs):
  2827.         '''GetVMin(self) -> int'''
  2828.         return _misc_.Joystick_GetVMin(*args, **kwargs)
  2829.  
  2830.     
  2831.     def GetVMax(*args, **kwargs):
  2832.         '''GetVMax(self) -> int'''
  2833.         return _misc_.Joystick_GetVMax(*args, **kwargs)
  2834.  
  2835.     
  2836.     def HasRudder(*args, **kwargs):
  2837.         '''HasRudder(self) -> bool'''
  2838.         return _misc_.Joystick_HasRudder(*args, **kwargs)
  2839.  
  2840.     
  2841.     def HasZ(*args, **kwargs):
  2842.         '''HasZ(self) -> bool'''
  2843.         return _misc_.Joystick_HasZ(*args, **kwargs)
  2844.  
  2845.     
  2846.     def HasU(*args, **kwargs):
  2847.         '''HasU(self) -> bool'''
  2848.         return _misc_.Joystick_HasU(*args, **kwargs)
  2849.  
  2850.     
  2851.     def HasV(*args, **kwargs):
  2852.         '''HasV(self) -> bool'''
  2853.         return _misc_.Joystick_HasV(*args, **kwargs)
  2854.  
  2855.     
  2856.     def HasPOV(*args, **kwargs):
  2857.         '''HasPOV(self) -> bool'''
  2858.         return _misc_.Joystick_HasPOV(*args, **kwargs)
  2859.  
  2860.     
  2861.     def HasPOV4Dir(*args, **kwargs):
  2862.         '''HasPOV4Dir(self) -> bool'''
  2863.         return _misc_.Joystick_HasPOV4Dir(*args, **kwargs)
  2864.  
  2865.     
  2866.     def HasPOVCTS(*args, **kwargs):
  2867.         '''HasPOVCTS(self) -> bool'''
  2868.         return _misc_.Joystick_HasPOVCTS(*args, **kwargs)
  2869.  
  2870.     
  2871.     def SetCapture(*args, **kwargs):
  2872.         '''SetCapture(self, Window win, int pollingFreq=0) -> bool'''
  2873.         return _misc_.Joystick_SetCapture(*args, **kwargs)
  2874.  
  2875.     
  2876.     def ReleaseCapture(*args, **kwargs):
  2877.         '''ReleaseCapture(self) -> bool'''
  2878.         return _misc_.Joystick_ReleaseCapture(*args, **kwargs)
  2879.  
  2880.     
  2881.     def __nonzero__(self):
  2882.         return self.IsOk()
  2883.  
  2884.  
  2885.  
  2886. class JoystickPtr(Joystick):
  2887.     
  2888.     def __init__(self, this):
  2889.         self.this = this
  2890.         if not hasattr(self, 'thisown'):
  2891.             self.thisown = 0
  2892.         
  2893.         self.__class__ = Joystick
  2894.  
  2895.  
  2896. _misc_.Joystick_swigregister(JoystickPtr)
  2897. wxEVT_JOY_BUTTON_DOWN = _misc_.wxEVT_JOY_BUTTON_DOWN
  2898. wxEVT_JOY_BUTTON_UP = _misc_.wxEVT_JOY_BUTTON_UP
  2899. wxEVT_JOY_MOVE = _misc_.wxEVT_JOY_MOVE
  2900. wxEVT_JOY_ZMOVE = _misc_.wxEVT_JOY_ZMOVE
  2901.  
  2902. class JoystickEvent(_core.Event):
  2903.     '''Proxy of C++ JoystickEvent class'''
  2904.     
  2905.     def __repr__(self):
  2906.         return '<%s.%s; proxy of C++ wxJoystickEvent instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  2907.  
  2908.     
  2909.     def __init__(self, *args, **kwargs):
  2910.         '''
  2911.         __init__(self, wxEventType type=wxEVT_NULL, int state=0, int joystick=JOYSTICK1, 
  2912.             int change=0) -> JoystickEvent
  2913.         '''
  2914.         newobj = _misc_.new_JoystickEvent(*args, **kwargs)
  2915.         self.this = newobj.this
  2916.         self.thisown = 1
  2917.         del newobj.thisown
  2918.  
  2919.     
  2920.     def GetPosition(*args, **kwargs):
  2921.         '''GetPosition(self) -> Point'''
  2922.         return _misc_.JoystickEvent_GetPosition(*args, **kwargs)
  2923.  
  2924.     
  2925.     def GetZPosition(*args, **kwargs):
  2926.         '''GetZPosition(self) -> int'''
  2927.         return _misc_.JoystickEvent_GetZPosition(*args, **kwargs)
  2928.  
  2929.     
  2930.     def GetButtonState(*args, **kwargs):
  2931.         '''GetButtonState(self) -> int'''
  2932.         return _misc_.JoystickEvent_GetButtonState(*args, **kwargs)
  2933.  
  2934.     
  2935.     def GetButtonChange(*args, **kwargs):
  2936.         '''GetButtonChange(self) -> int'''
  2937.         return _misc_.JoystickEvent_GetButtonChange(*args, **kwargs)
  2938.  
  2939.     
  2940.     def GetJoystick(*args, **kwargs):
  2941.         '''GetJoystick(self) -> int'''
  2942.         return _misc_.JoystickEvent_GetJoystick(*args, **kwargs)
  2943.  
  2944.     
  2945.     def SetJoystick(*args, **kwargs):
  2946.         '''SetJoystick(self, int stick)'''
  2947.         return _misc_.JoystickEvent_SetJoystick(*args, **kwargs)
  2948.  
  2949.     
  2950.     def SetButtonState(*args, **kwargs):
  2951.         '''SetButtonState(self, int state)'''
  2952.         return _misc_.JoystickEvent_SetButtonState(*args, **kwargs)
  2953.  
  2954.     
  2955.     def SetButtonChange(*args, **kwargs):
  2956.         '''SetButtonChange(self, int change)'''
  2957.         return _misc_.JoystickEvent_SetButtonChange(*args, **kwargs)
  2958.  
  2959.     
  2960.     def SetPosition(*args, **kwargs):
  2961.         '''SetPosition(self, Point pos)'''
  2962.         return _misc_.JoystickEvent_SetPosition(*args, **kwargs)
  2963.  
  2964.     
  2965.     def SetZPosition(*args, **kwargs):
  2966.         '''SetZPosition(self, int zPos)'''
  2967.         return _misc_.JoystickEvent_SetZPosition(*args, **kwargs)
  2968.  
  2969.     
  2970.     def IsButton(*args, **kwargs):
  2971.         '''IsButton(self) -> bool'''
  2972.         return _misc_.JoystickEvent_IsButton(*args, **kwargs)
  2973.  
  2974.     
  2975.     def IsMove(*args, **kwargs):
  2976.         '''IsMove(self) -> bool'''
  2977.         return _misc_.JoystickEvent_IsMove(*args, **kwargs)
  2978.  
  2979.     
  2980.     def IsZMove(*args, **kwargs):
  2981.         '''IsZMove(self) -> bool'''
  2982.         return _misc_.JoystickEvent_IsZMove(*args, **kwargs)
  2983.  
  2984.     
  2985.     def ButtonDown(*args, **kwargs):
  2986.         '''ButtonDown(self, int but=JOY_BUTTON_ANY) -> bool'''
  2987.         return _misc_.JoystickEvent_ButtonDown(*args, **kwargs)
  2988.  
  2989.     
  2990.     def ButtonUp(*args, **kwargs):
  2991.         '''ButtonUp(self, int but=JOY_BUTTON_ANY) -> bool'''
  2992.         return _misc_.JoystickEvent_ButtonUp(*args, **kwargs)
  2993.  
  2994.     
  2995.     def ButtonIsDown(*args, **kwargs):
  2996.         '''ButtonIsDown(self, int but=JOY_BUTTON_ANY) -> bool'''
  2997.         return _misc_.JoystickEvent_ButtonIsDown(*args, **kwargs)
  2998.  
  2999.     m_pos = property(GetPosition, SetPosition)
  3000.     m_zPosition = property(GetZPosition, SetZPosition)
  3001.     m_buttonChange = property(GetButtonChange, SetButtonChange)
  3002.     m_buttonState = property(GetButtonState, SetButtonState)
  3003.     m_joyStick = property(GetJoystick, SetJoystick)
  3004.  
  3005.  
  3006. class JoystickEventPtr(JoystickEvent):
  3007.     
  3008.     def __init__(self, this):
  3009.         self.this = this
  3010.         if not hasattr(self, 'thisown'):
  3011.             self.thisown = 0
  3012.         
  3013.         self.__class__ = JoystickEvent
  3014.  
  3015.  
  3016. _misc_.JoystickEvent_swigregister(JoystickEventPtr)
  3017. EVT_JOY_BUTTON_DOWN = wx.PyEventBinder(wxEVT_JOY_BUTTON_DOWN)
  3018. EVT_JOY_BUTTON_UP = wx.PyEventBinder(wxEVT_JOY_BUTTON_UP)
  3019. EVT_JOY_MOVE = wx.PyEventBinder(wxEVT_JOY_MOVE)
  3020. EVT_JOY_ZMOVE = wx.PyEventBinder(wxEVT_JOY_ZMOVE)
  3021. EVT_JOYSTICK_EVENTS = wx.PyEventBinder([
  3022.     wxEVT_JOY_BUTTON_DOWN,
  3023.     wxEVT_JOY_BUTTON_UP,
  3024.     wxEVT_JOY_MOVE,
  3025.     wxEVT_JOY_ZMOVE])
  3026. SOUND_SYNC = _misc_.SOUND_SYNC
  3027. SOUND_ASYNC = _misc_.SOUND_ASYNC
  3028. SOUND_LOOP = _misc_.SOUND_LOOP
  3029.  
  3030. class Sound(object):
  3031.     '''Proxy of C++ Sound class'''
  3032.     
  3033.     def __repr__(self):
  3034.         return '<%s.%s; proxy of C++ wxSound instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3035.  
  3036.     
  3037.     def __init__(self, *args, **kwargs):
  3038.         '''__init__(self, String fileName=EmptyString) -> Sound'''
  3039.         newobj = _misc_.new_Sound(*args, **kwargs)
  3040.         self.this = newobj.this
  3041.         self.thisown = 1
  3042.         del newobj.thisown
  3043.  
  3044.     
  3045.     def __del__(self, destroy = _misc_.delete_Sound):
  3046.         '''__del__(self)'''
  3047.         
  3048.         try:
  3049.             if self.thisown:
  3050.                 destroy(self)
  3051.         except:
  3052.             pass
  3053.  
  3054.  
  3055.     
  3056.     def Create(*args, **kwargs):
  3057.         '''Create(self, String fileName) -> bool'''
  3058.         return _misc_.Sound_Create(*args, **kwargs)
  3059.  
  3060.     
  3061.     def CreateFromData(*args, **kwargs):
  3062.         '''CreateFromData(self, PyObject data) -> bool'''
  3063.         return _misc_.Sound_CreateFromData(*args, **kwargs)
  3064.  
  3065.     
  3066.     def IsOk(*args, **kwargs):
  3067.         '''IsOk(self) -> bool'''
  3068.         return _misc_.Sound_IsOk(*args, **kwargs)
  3069.  
  3070.     
  3071.     def Play(*args, **kwargs):
  3072.         '''Play(self, unsigned int flags=SOUND_ASYNC) -> bool'''
  3073.         return _misc_.Sound_Play(*args, **kwargs)
  3074.  
  3075.     
  3076.     def PlaySound(*args, **kwargs):
  3077.         '''PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool'''
  3078.         return _misc_.Sound_PlaySound(*args, **kwargs)
  3079.  
  3080.     PlaySound = staticmethod(PlaySound)
  3081.     
  3082.     def Stop(*args, **kwargs):
  3083.         '''Stop()'''
  3084.         return _misc_.Sound_Stop(*args, **kwargs)
  3085.  
  3086.     Stop = staticmethod(Stop)
  3087.     
  3088.     def __nonzero__(self):
  3089.         return self.IsOk()
  3090.  
  3091.  
  3092.  
  3093. class SoundPtr(Sound):
  3094.     
  3095.     def __init__(self, this):
  3096.         self.this = this
  3097.         if not hasattr(self, 'thisown'):
  3098.             self.thisown = 0
  3099.         
  3100.         self.__class__ = Sound
  3101.  
  3102.  
  3103. _misc_.Sound_swigregister(SoundPtr)
  3104.  
  3105. def SoundFromData(*args, **kwargs):
  3106.     '''SoundFromData(PyObject data) -> Sound'''
  3107.     val = _misc_.new_SoundFromData(*args, **kwargs)
  3108.     val.thisown = 1
  3109.     return val
  3110.  
  3111.  
  3112. def Sound_PlaySound(*args, **kwargs):
  3113.     '''Sound_PlaySound(String filename, unsigned int flags=SOUND_ASYNC) -> bool'''
  3114.     return _misc_.Sound_PlaySound(*args, **kwargs)
  3115.  
  3116.  
  3117. def Sound_Stop(*args, **kwargs):
  3118.     '''Sound_Stop()'''
  3119.     return _misc_.Sound_Stop(*args, **kwargs)
  3120.  
  3121. MAILCAP_STANDARD = _misc_.MAILCAP_STANDARD
  3122. MAILCAP_NETSCAPE = _misc_.MAILCAP_NETSCAPE
  3123. MAILCAP_KDE = _misc_.MAILCAP_KDE
  3124. MAILCAP_GNOME = _misc_.MAILCAP_GNOME
  3125. MAILCAP_ALL = _misc_.MAILCAP_ALL
  3126.  
  3127. class FileTypeInfo(object):
  3128.     '''Proxy of C++ FileTypeInfo class'''
  3129.     
  3130.     def __repr__(self):
  3131.         return '<%s.%s; proxy of C++ wxFileTypeInfo instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3132.  
  3133.     
  3134.     def __init__(self, *args, **kwargs):
  3135.         '''__init__(self, String mimeType, String openCmd, String printCmd, String desc) -> FileTypeInfo'''
  3136.         newobj = _misc_.new_FileTypeInfo(*args, **kwargs)
  3137.         self.this = newobj.this
  3138.         self.thisown = 1
  3139.         del newobj.thisown
  3140.  
  3141.     
  3142.     def IsValid(*args, **kwargs):
  3143.         '''IsValid(self) -> bool'''
  3144.         return _misc_.FileTypeInfo_IsValid(*args, **kwargs)
  3145.  
  3146.     
  3147.     def SetIcon(*args, **kwargs):
  3148.         '''SetIcon(self, String iconFile, int iconIndex=0)'''
  3149.         return _misc_.FileTypeInfo_SetIcon(*args, **kwargs)
  3150.  
  3151.     
  3152.     def SetShortDesc(*args, **kwargs):
  3153.         '''SetShortDesc(self, String shortDesc)'''
  3154.         return _misc_.FileTypeInfo_SetShortDesc(*args, **kwargs)
  3155.  
  3156.     
  3157.     def GetMimeType(*args, **kwargs):
  3158.         '''GetMimeType(self) -> String'''
  3159.         return _misc_.FileTypeInfo_GetMimeType(*args, **kwargs)
  3160.  
  3161.     
  3162.     def GetOpenCommand(*args, **kwargs):
  3163.         '''GetOpenCommand(self) -> String'''
  3164.         return _misc_.FileTypeInfo_GetOpenCommand(*args, **kwargs)
  3165.  
  3166.     
  3167.     def GetPrintCommand(*args, **kwargs):
  3168.         '''GetPrintCommand(self) -> String'''
  3169.         return _misc_.FileTypeInfo_GetPrintCommand(*args, **kwargs)
  3170.  
  3171.     
  3172.     def GetShortDesc(*args, **kwargs):
  3173.         '''GetShortDesc(self) -> String'''
  3174.         return _misc_.FileTypeInfo_GetShortDesc(*args, **kwargs)
  3175.  
  3176.     
  3177.     def GetDescription(*args, **kwargs):
  3178.         '''GetDescription(self) -> String'''
  3179.         return _misc_.FileTypeInfo_GetDescription(*args, **kwargs)
  3180.  
  3181.     
  3182.     def GetExtensions(*args, **kwargs):
  3183.         '''GetExtensions(self) -> wxArrayString'''
  3184.         return _misc_.FileTypeInfo_GetExtensions(*args, **kwargs)
  3185.  
  3186.     
  3187.     def GetExtensionsCount(*args, **kwargs):
  3188.         '''GetExtensionsCount(self) -> int'''
  3189.         return _misc_.FileTypeInfo_GetExtensionsCount(*args, **kwargs)
  3190.  
  3191.     
  3192.     def GetIconFile(*args, **kwargs):
  3193.         '''GetIconFile(self) -> String'''
  3194.         return _misc_.FileTypeInfo_GetIconFile(*args, **kwargs)
  3195.  
  3196.     
  3197.     def GetIconIndex(*args, **kwargs):
  3198.         '''GetIconIndex(self) -> int'''
  3199.         return _misc_.FileTypeInfo_GetIconIndex(*args, **kwargs)
  3200.  
  3201.  
  3202.  
  3203. class FileTypeInfoPtr(FileTypeInfo):
  3204.     
  3205.     def __init__(self, this):
  3206.         self.this = this
  3207.         if not hasattr(self, 'thisown'):
  3208.             self.thisown = 0
  3209.         
  3210.         self.__class__ = FileTypeInfo
  3211.  
  3212.  
  3213. _misc_.FileTypeInfo_swigregister(FileTypeInfoPtr)
  3214.  
  3215. def FileTypeInfoSequence(*args, **kwargs):
  3216.     '''FileTypeInfoSequence(wxArrayString sArray) -> FileTypeInfo'''
  3217.     val = _misc_.new_FileTypeInfoSequence(*args, **kwargs)
  3218.     val.thisown = 1
  3219.     return val
  3220.  
  3221.  
  3222. def NullFileTypeInfo(*args, **kwargs):
  3223.     '''NullFileTypeInfo() -> FileTypeInfo'''
  3224.     val = _misc_.new_NullFileTypeInfo(*args, **kwargs)
  3225.     val.thisown = 1
  3226.     return val
  3227.  
  3228.  
  3229. class FileType(object):
  3230.     '''Proxy of C++ FileType class'''
  3231.     
  3232.     def __repr__(self):
  3233.         return '<%s.%s; proxy of C++ wxFileType instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3234.  
  3235.     
  3236.     def __init__(self, *args, **kwargs):
  3237.         '''__init__(self, FileTypeInfo ftInfo) -> FileType'''
  3238.         newobj = _misc_.new_FileType(*args, **kwargs)
  3239.         self.this = newobj.this
  3240.         self.thisown = 1
  3241.         del newobj.thisown
  3242.  
  3243.     
  3244.     def __del__(self, destroy = _misc_.delete_FileType):
  3245.         '''__del__(self)'''
  3246.         
  3247.         try:
  3248.             if self.thisown:
  3249.                 destroy(self)
  3250.         except:
  3251.             pass
  3252.  
  3253.  
  3254.     
  3255.     def GetMimeType(*args, **kwargs):
  3256.         '''GetMimeType(self) -> PyObject'''
  3257.         return _misc_.FileType_GetMimeType(*args, **kwargs)
  3258.  
  3259.     
  3260.     def GetMimeTypes(*args, **kwargs):
  3261.         '''GetMimeTypes(self) -> PyObject'''
  3262.         return _misc_.FileType_GetMimeTypes(*args, **kwargs)
  3263.  
  3264.     
  3265.     def GetExtensions(*args, **kwargs):
  3266.         '''GetExtensions(self) -> PyObject'''
  3267.         return _misc_.FileType_GetExtensions(*args, **kwargs)
  3268.  
  3269.     
  3270.     def GetIcon(*args, **kwargs):
  3271.         '''GetIcon(self) -> Icon'''
  3272.         return _misc_.FileType_GetIcon(*args, **kwargs)
  3273.  
  3274.     
  3275.     def GetIconInfo(*args, **kwargs):
  3276.         '''GetIconInfo(self) -> PyObject'''
  3277.         return _misc_.FileType_GetIconInfo(*args, **kwargs)
  3278.  
  3279.     
  3280.     def GetDescription(*args, **kwargs):
  3281.         '''GetDescription(self) -> PyObject'''
  3282.         return _misc_.FileType_GetDescription(*args, **kwargs)
  3283.  
  3284.     
  3285.     def GetOpenCommand(*args, **kwargs):
  3286.         '''GetOpenCommand(self, String filename, String mimetype=EmptyString) -> PyObject'''
  3287.         return _misc_.FileType_GetOpenCommand(*args, **kwargs)
  3288.  
  3289.     
  3290.     def GetPrintCommand(*args, **kwargs):
  3291.         '''GetPrintCommand(self, String filename, String mimetype=EmptyString) -> PyObject'''
  3292.         return _misc_.FileType_GetPrintCommand(*args, **kwargs)
  3293.  
  3294.     
  3295.     def GetAllCommands(*args, **kwargs):
  3296.         '''GetAllCommands(self, String filename, String mimetype=EmptyString) -> PyObject'''
  3297.         return _misc_.FileType_GetAllCommands(*args, **kwargs)
  3298.  
  3299.     
  3300.     def SetCommand(*args, **kwargs):
  3301.         '''SetCommand(self, String cmd, String verb, bool overwriteprompt=True) -> bool'''
  3302.         return _misc_.FileType_SetCommand(*args, **kwargs)
  3303.  
  3304.     
  3305.     def SetDefaultIcon(*args, **kwargs):
  3306.         '''SetDefaultIcon(self, String cmd=EmptyString, int index=0) -> bool'''
  3307.         return _misc_.FileType_SetDefaultIcon(*args, **kwargs)
  3308.  
  3309.     
  3310.     def Unassociate(*args, **kwargs):
  3311.         '''Unassociate(self) -> bool'''
  3312.         return _misc_.FileType_Unassociate(*args, **kwargs)
  3313.  
  3314.     
  3315.     def ExpandCommand(*args, **kwargs):
  3316.         '''ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String'''
  3317.         return _misc_.FileType_ExpandCommand(*args, **kwargs)
  3318.  
  3319.     ExpandCommand = staticmethod(ExpandCommand)
  3320.  
  3321.  
  3322. class FileTypePtr(FileType):
  3323.     
  3324.     def __init__(self, this):
  3325.         self.this = this
  3326.         if not hasattr(self, 'thisown'):
  3327.             self.thisown = 0
  3328.         
  3329.         self.__class__ = FileType
  3330.  
  3331.  
  3332. _misc_.FileType_swigregister(FileTypePtr)
  3333.  
  3334. def FileType_ExpandCommand(*args, **kwargs):
  3335.     '''FileType_ExpandCommand(String command, String filename, String mimetype=EmptyString) -> String'''
  3336.     return _misc_.FileType_ExpandCommand(*args, **kwargs)
  3337.  
  3338.  
  3339. class MimeTypesManager(object):
  3340.     '''Proxy of C++ MimeTypesManager class'''
  3341.     
  3342.     def __repr__(self):
  3343.         return '<%s.%s; proxy of C++ wxMimeTypesManager instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3344.  
  3345.     
  3346.     def IsOfType(*args, **kwargs):
  3347.         '''IsOfType(String mimeType, String wildcard) -> bool'''
  3348.         return _misc_.MimeTypesManager_IsOfType(*args, **kwargs)
  3349.  
  3350.     IsOfType = staticmethod(IsOfType)
  3351.     
  3352.     def __init__(self, *args, **kwargs):
  3353.         '''__init__(self) -> MimeTypesManager'''
  3354.         newobj = _misc_.new_MimeTypesManager(*args, **kwargs)
  3355.         self.this = newobj.this
  3356.         self.thisown = 1
  3357.         del newobj.thisown
  3358.  
  3359.     
  3360.     def Initialize(*args, **kwargs):
  3361.         '''Initialize(self, int mailcapStyle=MAILCAP_ALL, String extraDir=EmptyString)'''
  3362.         return _misc_.MimeTypesManager_Initialize(*args, **kwargs)
  3363.  
  3364.     
  3365.     def ClearData(*args, **kwargs):
  3366.         '''ClearData(self)'''
  3367.         return _misc_.MimeTypesManager_ClearData(*args, **kwargs)
  3368.  
  3369.     
  3370.     def GetFileTypeFromExtension(*args, **kwargs):
  3371.         '''GetFileTypeFromExtension(self, String ext) -> FileType'''
  3372.         return _misc_.MimeTypesManager_GetFileTypeFromExtension(*args, **kwargs)
  3373.  
  3374.     
  3375.     def GetFileTypeFromMimeType(*args, **kwargs):
  3376.         '''GetFileTypeFromMimeType(self, String mimeType) -> FileType'''
  3377.         return _misc_.MimeTypesManager_GetFileTypeFromMimeType(*args, **kwargs)
  3378.  
  3379.     
  3380.     def ReadMailcap(*args, **kwargs):
  3381.         '''ReadMailcap(self, String filename, bool fallback=False) -> bool'''
  3382.         return _misc_.MimeTypesManager_ReadMailcap(*args, **kwargs)
  3383.  
  3384.     
  3385.     def ReadMimeTypes(*args, **kwargs):
  3386.         '''ReadMimeTypes(self, String filename) -> bool'''
  3387.         return _misc_.MimeTypesManager_ReadMimeTypes(*args, **kwargs)
  3388.  
  3389.     
  3390.     def EnumAllFileTypes(*args, **kwargs):
  3391.         '''EnumAllFileTypes(self) -> PyObject'''
  3392.         return _misc_.MimeTypesManager_EnumAllFileTypes(*args, **kwargs)
  3393.  
  3394.     
  3395.     def AddFallback(*args, **kwargs):
  3396.         '''AddFallback(self, FileTypeInfo ft)'''
  3397.         return _misc_.MimeTypesManager_AddFallback(*args, **kwargs)
  3398.  
  3399.     
  3400.     def Associate(*args, **kwargs):
  3401.         '''Associate(self, FileTypeInfo ftInfo) -> FileType'''
  3402.         return _misc_.MimeTypesManager_Associate(*args, **kwargs)
  3403.  
  3404.     
  3405.     def Unassociate(*args, **kwargs):
  3406.         '''Unassociate(self, FileType ft) -> bool'''
  3407.         return _misc_.MimeTypesManager_Unassociate(*args, **kwargs)
  3408.  
  3409.     
  3410.     def __del__(self, destroy = _misc_.delete_MimeTypesManager):
  3411.         '''__del__(self)'''
  3412.         
  3413.         try:
  3414.             if self.thisown:
  3415.                 destroy(self)
  3416.         except:
  3417.             pass
  3418.  
  3419.  
  3420.  
  3421.  
  3422. class MimeTypesManagerPtr(MimeTypesManager):
  3423.     
  3424.     def __init__(self, this):
  3425.         self.this = this
  3426.         if not hasattr(self, 'thisown'):
  3427.             self.thisown = 0
  3428.         
  3429.         self.__class__ = MimeTypesManager
  3430.  
  3431.  
  3432. _misc_.MimeTypesManager_swigregister(MimeTypesManagerPtr)
  3433. TheMimeTypesManager = cvar.TheMimeTypesManager
  3434.  
  3435. def MimeTypesManager_IsOfType(*args, **kwargs):
  3436.     '''MimeTypesManager_IsOfType(String mimeType, String wildcard) -> bool'''
  3437.     return _misc_.MimeTypesManager_IsOfType(*args, **kwargs)
  3438.  
  3439.  
  3440. class ArtProvider(object):
  3441.     """
  3442.     The wx.ArtProvider class is used to customize the look of wxWidgets
  3443.     application. When wxWidgets needs to display an icon or a bitmap (e.g.
  3444.     in the standard file dialog), it does not use hard-coded resource but
  3445.     asks wx.ArtProvider for it instead. This way the users can plug in
  3446.     their own wx.ArtProvider class and easily replace standard art with
  3447.     his/her own version. It is easy thing to do: all that is needed is
  3448.     to derive a class from wx.ArtProvider, override it's CreateBitmap
  3449.     method and register the provider with wx.ArtProvider.PushProvider::
  3450.  
  3451.         class MyArtProvider(wx.ArtProvider):
  3452.             def __init__(self):
  3453.                 wx.ArtProvider.__init__(self)
  3454.  
  3455.             def CreateBitmap(self, artid, client, size):
  3456.                 ...
  3457.                 return bmp
  3458.  
  3459.     """
  3460.     
  3461.     def __repr__(self):
  3462.         return '<%s.%s; proxy of C++ wxPyArtProvider instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3463.  
  3464.     
  3465.     def __init__(self, *args, **kwargs):
  3466.         """
  3467.         __init__(self) -> ArtProvider
  3468.  
  3469.         The wx.ArtProvider class is used to customize the look of wxWidgets
  3470.         application. When wxWidgets needs to display an icon or a bitmap (e.g.
  3471.         in the standard file dialog), it does not use hard-coded resource but
  3472.         asks wx.ArtProvider for it instead. This way the users can plug in
  3473.         their own wx.ArtProvider class and easily replace standard art with
  3474.         his/her own version. It is easy thing to do: all that is needed is
  3475.         to derive a class from wx.ArtProvider, override it's CreateBitmap
  3476.         method and register the provider with wx.ArtProvider.PushProvider::
  3477.  
  3478.             class MyArtProvider(wx.ArtProvider):
  3479.                 def __init__(self):
  3480.                     wx.ArtProvider.__init__(self)
  3481.  
  3482.                 def CreateBitmap(self, artid, client, size):
  3483.                     ...
  3484.                     return bmp
  3485.  
  3486.         """
  3487.         newobj = _misc_.new_ArtProvider(*args, **kwargs)
  3488.         self.this = newobj.this
  3489.         self.thisown = 1
  3490.         del newobj.thisown
  3491.         self._setCallbackInfo(self, ArtProvider)
  3492.  
  3493.     
  3494.     def _setCallbackInfo(*args, **kwargs):
  3495.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  3496.         return _misc_.ArtProvider__setCallbackInfo(*args, **kwargs)
  3497.  
  3498.     
  3499.     def PushProvider(*args, **kwargs):
  3500.         '''
  3501.         PushProvider(ArtProvider provider)
  3502.  
  3503.         Add new provider to the top of providers stack.
  3504.         '''
  3505.         return _misc_.ArtProvider_PushProvider(*args, **kwargs)
  3506.  
  3507.     PushProvider = staticmethod(PushProvider)
  3508.     
  3509.     def PopProvider(*args, **kwargs):
  3510.         '''
  3511.         PopProvider() -> bool
  3512.  
  3513.         Remove latest added provider and delete it.
  3514.         '''
  3515.         return _misc_.ArtProvider_PopProvider(*args, **kwargs)
  3516.  
  3517.     PopProvider = staticmethod(PopProvider)
  3518.     
  3519.     def RemoveProvider(*args, **kwargs):
  3520.         '''
  3521.         RemoveProvider(ArtProvider provider) -> bool
  3522.  
  3523.         Remove provider. The provider must have been added previously!  The
  3524.         provider is _not_ deleted.
  3525.         '''
  3526.         return _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
  3527.  
  3528.     RemoveProvider = staticmethod(RemoveProvider)
  3529.     
  3530.     def GetBitmap(*args, **kwargs):
  3531.         '''
  3532.         GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
  3533.  
  3534.         Query the providers for bitmap with given ID and return it. Return
  3535.         wx.NullBitmap if no provider provides it.
  3536.         '''
  3537.         return _misc_.ArtProvider_GetBitmap(*args, **kwargs)
  3538.  
  3539.     GetBitmap = staticmethod(GetBitmap)
  3540.     
  3541.     def GetIcon(*args, **kwargs):
  3542.         '''
  3543.         GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
  3544.  
  3545.         Query the providers for icon with given ID and return it.  Return
  3546.         wx.NullIcon if no provider provides it.
  3547.         '''
  3548.         return _misc_.ArtProvider_GetIcon(*args, **kwargs)
  3549.  
  3550.     GetIcon = staticmethod(GetIcon)
  3551.     
  3552.     def GetSizeHint(*args, **kwargs):
  3553.         '''
  3554.         GetSizeHint(String client, bool platform_dependent=False) -> Size
  3555.  
  3556.         Get the size hint of an icon from a specific Art Client, queries the
  3557.         topmost provider if platform_dependent = false
  3558.         '''
  3559.         return _misc_.ArtProvider_GetSizeHint(*args, **kwargs)
  3560.  
  3561.     GetSizeHint = staticmethod(GetSizeHint)
  3562.     
  3563.     def Destroy(*args, **kwargs):
  3564.         '''Destroy(self)'''
  3565.         return _misc_.ArtProvider_Destroy(*args, **kwargs)
  3566.  
  3567.  
  3568.  
  3569. class ArtProviderPtr(ArtProvider):
  3570.     
  3571.     def __init__(self, this):
  3572.         self.this = this
  3573.         if not hasattr(self, 'thisown'):
  3574.             self.thisown = 0
  3575.         
  3576.         self.__class__ = ArtProvider
  3577.  
  3578.  
  3579. _misc_.ArtProvider_swigregister(ArtProviderPtr)
  3580. ART_TOOLBAR = cvar.ART_TOOLBAR
  3581. ART_MENU = cvar.ART_MENU
  3582. ART_FRAME_ICON = cvar.ART_FRAME_ICON
  3583. ART_CMN_DIALOG = cvar.ART_CMN_DIALOG
  3584. ART_HELP_BROWSER = cvar.ART_HELP_BROWSER
  3585. ART_MESSAGE_BOX = cvar.ART_MESSAGE_BOX
  3586. ART_BUTTON = cvar.ART_BUTTON
  3587. ART_OTHER = cvar.ART_OTHER
  3588. ART_ADD_BOOKMARK = cvar.ART_ADD_BOOKMARK
  3589. ART_DEL_BOOKMARK = cvar.ART_DEL_BOOKMARK
  3590. ART_HELP_SIDE_PANEL = cvar.ART_HELP_SIDE_PANEL
  3591. ART_HELP_SETTINGS = cvar.ART_HELP_SETTINGS
  3592. ART_HELP_BOOK = cvar.ART_HELP_BOOK
  3593. ART_HELP_FOLDER = cvar.ART_HELP_FOLDER
  3594. ART_HELP_PAGE = cvar.ART_HELP_PAGE
  3595. ART_GO_BACK = cvar.ART_GO_BACK
  3596. ART_GO_FORWARD = cvar.ART_GO_FORWARD
  3597. ART_GO_UP = cvar.ART_GO_UP
  3598. ART_GO_DOWN = cvar.ART_GO_DOWN
  3599. ART_GO_TO_PARENT = cvar.ART_GO_TO_PARENT
  3600. ART_GO_HOME = cvar.ART_GO_HOME
  3601. ART_FILE_OPEN = cvar.ART_FILE_OPEN
  3602. ART_FILE_SAVE = cvar.ART_FILE_SAVE
  3603. ART_FILE_SAVE_AS = cvar.ART_FILE_SAVE_AS
  3604. ART_PRINT = cvar.ART_PRINT
  3605. ART_HELP = cvar.ART_HELP
  3606. ART_TIP = cvar.ART_TIP
  3607. ART_REPORT_VIEW = cvar.ART_REPORT_VIEW
  3608. ART_LIST_VIEW = cvar.ART_LIST_VIEW
  3609. ART_NEW_DIR = cvar.ART_NEW_DIR
  3610. ART_HARDDISK = cvar.ART_HARDDISK
  3611. ART_FLOPPY = cvar.ART_FLOPPY
  3612. ART_CDROM = cvar.ART_CDROM
  3613. ART_REMOVABLE = cvar.ART_REMOVABLE
  3614. ART_FOLDER = cvar.ART_FOLDER
  3615. ART_FOLDER_OPEN = cvar.ART_FOLDER_OPEN
  3616. ART_GO_DIR_UP = cvar.ART_GO_DIR_UP
  3617. ART_EXECUTABLE_FILE = cvar.ART_EXECUTABLE_FILE
  3618. ART_NORMAL_FILE = cvar.ART_NORMAL_FILE
  3619. ART_TICK_MARK = cvar.ART_TICK_MARK
  3620. ART_CROSS_MARK = cvar.ART_CROSS_MARK
  3621. ART_ERROR = cvar.ART_ERROR
  3622. ART_QUESTION = cvar.ART_QUESTION
  3623. ART_WARNING = cvar.ART_WARNING
  3624. ART_INFORMATION = cvar.ART_INFORMATION
  3625. ART_MISSING_IMAGE = cvar.ART_MISSING_IMAGE
  3626. ART_COPY = cvar.ART_COPY
  3627. ART_CUT = cvar.ART_CUT
  3628. ART_PASTE = cvar.ART_PASTE
  3629. ART_DELETE = cvar.ART_DELETE
  3630. ART_NEW = cvar.ART_NEW
  3631. ART_UNDO = cvar.ART_UNDO
  3632. ART_REDO = cvar.ART_REDO
  3633. ART_QUIT = cvar.ART_QUIT
  3634. ART_FIND = cvar.ART_FIND
  3635. ART_FIND_AND_REPLACE = cvar.ART_FIND_AND_REPLACE
  3636.  
  3637. def ArtProvider_PushProvider(*args, **kwargs):
  3638.     '''
  3639.     ArtProvider_PushProvider(ArtProvider provider)
  3640.  
  3641.     Add new provider to the top of providers stack.
  3642.     '''
  3643.     return _misc_.ArtProvider_PushProvider(*args, **kwargs)
  3644.  
  3645.  
  3646. def ArtProvider_PopProvider(*args, **kwargs):
  3647.     '''
  3648.     ArtProvider_PopProvider() -> bool
  3649.  
  3650.     Remove latest added provider and delete it.
  3651.     '''
  3652.     return _misc_.ArtProvider_PopProvider(*args, **kwargs)
  3653.  
  3654.  
  3655. def ArtProvider_RemoveProvider(*args, **kwargs):
  3656.     '''
  3657.     ArtProvider_RemoveProvider(ArtProvider provider) -> bool
  3658.  
  3659.     Remove provider. The provider must have been added previously!  The
  3660.     provider is _not_ deleted.
  3661.     '''
  3662.     return _misc_.ArtProvider_RemoveProvider(*args, **kwargs)
  3663.  
  3664.  
  3665. def ArtProvider_GetBitmap(*args, **kwargs):
  3666.     '''
  3667.     ArtProvider_GetBitmap(String id, String client=ART_OTHER, Size size=DefaultSize) -> Bitmap
  3668.  
  3669.     Query the providers for bitmap with given ID and return it. Return
  3670.     wx.NullBitmap if no provider provides it.
  3671.     '''
  3672.     return _misc_.ArtProvider_GetBitmap(*args, **kwargs)
  3673.  
  3674.  
  3675. def ArtProvider_GetIcon(*args, **kwargs):
  3676.     '''
  3677.     ArtProvider_GetIcon(String id, String client=ART_OTHER, Size size=DefaultSize) -> Icon
  3678.  
  3679.     Query the providers for icon with given ID and return it.  Return
  3680.     wx.NullIcon if no provider provides it.
  3681.     '''
  3682.     return _misc_.ArtProvider_GetIcon(*args, **kwargs)
  3683.  
  3684.  
  3685. def ArtProvider_GetSizeHint(*args, **kwargs):
  3686.     '''
  3687.     ArtProvider_GetSizeHint(String client, bool platform_dependent=False) -> Size
  3688.  
  3689.     Get the size hint of an icon from a specific Art Client, queries the
  3690.     topmost provider if platform_dependent = false
  3691.     '''
  3692.     return _misc_.ArtProvider_GetSizeHint(*args, **kwargs)
  3693.  
  3694. CONFIG_USE_LOCAL_FILE = _misc_.CONFIG_USE_LOCAL_FILE
  3695. CONFIG_USE_GLOBAL_FILE = _misc_.CONFIG_USE_GLOBAL_FILE
  3696. CONFIG_USE_RELATIVE_PATH = _misc_.CONFIG_USE_RELATIVE_PATH
  3697. CONFIG_USE_NO_ESCAPE_CHARACTERS = _misc_.CONFIG_USE_NO_ESCAPE_CHARACTERS
  3698.  
  3699. class ConfigBase(object):
  3700.     '''
  3701.     wx.ConfigBase class defines the basic interface of all config
  3702.     classes. It can not be used by itself (it is an abstract base class)
  3703.     and you will always use one of its derivations: wx.Config or
  3704.     wx.FileConfig.
  3705.  
  3706.     wx.ConfigBase organizes the items in a tree-like structure, modeled
  3707.     after the Unix/Dos filesystem. There are groups that act like
  3708.     directories and entries, key/value pairs that act like files.  There
  3709.     is always one current group given by the current path.  As in the file
  3710.     system case, to specify a key in the config class you must use a path
  3711.     to it.  Config classes also support the notion of the current group,
  3712.     which makes it possible to use relative paths.
  3713.  
  3714.     Keys are pairs "key_name = value" where value may be of string,
  3715.     integer floating point or boolean, you can not store binary data
  3716.     without first encoding it as a string.  For performance reasons items
  3717.     should be kept small, no more than a couple kilobytes.
  3718.  
  3719.     '''
  3720.     
  3721.     def __init__(self):
  3722.         raise RuntimeError, 'No constructor defined'
  3723.  
  3724.     
  3725.     def __repr__(self):
  3726.         return '<%s.%s; proxy of C++ wxConfigBase instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  3727.  
  3728.     
  3729.     def __del__(self, destroy = _misc_.delete_ConfigBase):
  3730.         '''__del__(self)'''
  3731.         
  3732.         try:
  3733.             if self.thisown:
  3734.                 destroy(self)
  3735.         except:
  3736.             pass
  3737.  
  3738.  
  3739.     Type_Unknown = _misc_.ConfigBase_Type_Unknown
  3740.     Type_String = _misc_.ConfigBase_Type_String
  3741.     Type_Boolean = _misc_.ConfigBase_Type_Boolean
  3742.     Type_Integer = _misc_.ConfigBase_Type_Integer
  3743.     Type_Float = _misc_.ConfigBase_Type_Float
  3744.     
  3745.     def Set(*args, **kwargs):
  3746.         '''
  3747.         Set(ConfigBase config) -> ConfigBase
  3748.  
  3749.         Sets the global config object (the one returned by Get) and returns a
  3750.         reference to the previous global config object.
  3751.         '''
  3752.         return _misc_.ConfigBase_Set(*args, **kwargs)
  3753.  
  3754.     Set = staticmethod(Set)
  3755.     
  3756.     def Get(*args, **kwargs):
  3757.         '''
  3758.         Get(bool createOnDemand=True) -> ConfigBase
  3759.  
  3760.         Returns the current global config object, creating one if neccessary.
  3761.         '''
  3762.         return _misc_.ConfigBase_Get(*args, **kwargs)
  3763.  
  3764.     Get = staticmethod(Get)
  3765.     
  3766.     def Create(*args, **kwargs):
  3767.         '''
  3768.         Create() -> ConfigBase
  3769.  
  3770.         Create and return a new global config object.  This function will
  3771.         create the "best" implementation of wx.Config available for the
  3772.         current platform.
  3773.         '''
  3774.         return _misc_.ConfigBase_Create(*args, **kwargs)
  3775.  
  3776.     Create = staticmethod(Create)
  3777.     
  3778.     def DontCreateOnDemand(*args, **kwargs):
  3779.         """
  3780.         DontCreateOnDemand()
  3781.  
  3782.         Should Get() try to create a new log object if there isn't a current
  3783.         one?
  3784.         """
  3785.         return _misc_.ConfigBase_DontCreateOnDemand(*args, **kwargs)
  3786.  
  3787.     DontCreateOnDemand = staticmethod(DontCreateOnDemand)
  3788.     
  3789.     def SetPath(*args, **kwargs):
  3790.         """
  3791.         SetPath(self, String path)
  3792.  
  3793.         Set current path: if the first character is '/', it's the absolute
  3794.         path, otherwise it's a relative path. '..' is supported. If the
  3795.         strPath doesn't exist it is created.
  3796.         """
  3797.         return _misc_.ConfigBase_SetPath(*args, **kwargs)
  3798.  
  3799.     
  3800.     def GetPath(*args, **kwargs):
  3801.         '''
  3802.         GetPath(self) -> String
  3803.  
  3804.         Retrieve the current path (always as absolute path)
  3805.         '''
  3806.         return _misc_.ConfigBase_GetPath(*args, **kwargs)
  3807.  
  3808.     
  3809.     def GetFirstGroup(*args, **kwargs):
  3810.         '''
  3811.         GetFirstGroup() -> (more, value, index)
  3812.  
  3813.         Allows enumerating the subgroups in a config object.  Returns a tuple
  3814.         containing a flag indicating there are more items, the name of the
  3815.         current item, and an index to pass to GetNextGroup to fetch the next
  3816.         item.
  3817.         '''
  3818.         return _misc_.ConfigBase_GetFirstGroup(*args, **kwargs)
  3819.  
  3820.     
  3821.     def GetNextGroup(*args, **kwargs):
  3822.         '''
  3823.         GetNextGroup(long index) -> (more, value, index)
  3824.  
  3825.         Allows enumerating the subgroups in a config object.  Returns a tuple
  3826.         containing a flag indicating there are more items, the name of the
  3827.         current item, and an index to pass to GetNextGroup to fetch the next
  3828.         item.
  3829.         '''
  3830.         return _misc_.ConfigBase_GetNextGroup(*args, **kwargs)
  3831.  
  3832.     
  3833.     def GetFirstEntry(*args, **kwargs):
  3834.         '''
  3835.         GetFirstEntry() -> (more, value, index)
  3836.  
  3837.         Allows enumerating the entries in the current group in a config
  3838.         object.  Returns a tuple containing a flag indicating there are more
  3839.         items, the name of the current item, and an index to pass to
  3840.         GetNextGroup to fetch the next item.
  3841.         '''
  3842.         return _misc_.ConfigBase_GetFirstEntry(*args, **kwargs)
  3843.  
  3844.     
  3845.     def GetNextEntry(*args, **kwargs):
  3846.         '''
  3847.         GetNextEntry(long index) -> (more, value, index)
  3848.  
  3849.         Allows enumerating the entries in the current group in a config
  3850.         object.  Returns a tuple containing a flag indicating there are more
  3851.         items, the name of the current item, and an index to pass to
  3852.         GetNextGroup to fetch the next item.
  3853.         '''
  3854.         return _misc_.ConfigBase_GetNextEntry(*args, **kwargs)
  3855.  
  3856.     
  3857.     def GetNumberOfEntries(*args, **kwargs):
  3858.         '''
  3859.         GetNumberOfEntries(self, bool recursive=False) -> size_t
  3860.  
  3861.         Get the number of entries in the current group, with or without its
  3862.         subgroups.
  3863.         '''
  3864.         return _misc_.ConfigBase_GetNumberOfEntries(*args, **kwargs)
  3865.  
  3866.     
  3867.     def GetNumberOfGroups(*args, **kwargs):
  3868.         '''
  3869.         GetNumberOfGroups(self, bool recursive=False) -> size_t
  3870.  
  3871.         Get the number of subgroups in the current group, with or without its
  3872.         subgroups.
  3873.         '''
  3874.         return _misc_.ConfigBase_GetNumberOfGroups(*args, **kwargs)
  3875.  
  3876.     
  3877.     def HasGroup(*args, **kwargs):
  3878.         '''
  3879.         HasGroup(self, String name) -> bool
  3880.  
  3881.         Returns True if the group by this name exists
  3882.         '''
  3883.         return _misc_.ConfigBase_HasGroup(*args, **kwargs)
  3884.  
  3885.     
  3886.     def HasEntry(*args, **kwargs):
  3887.         '''
  3888.         HasEntry(self, String name) -> bool
  3889.  
  3890.         Returns True if the entry by this name exists
  3891.         '''
  3892.         return _misc_.ConfigBase_HasEntry(*args, **kwargs)
  3893.  
  3894.     
  3895.     def Exists(*args, **kwargs):
  3896.         '''
  3897.         Exists(self, String name) -> bool
  3898.  
  3899.         Returns True if either a group or an entry with a given name exists
  3900.         '''
  3901.         return _misc_.ConfigBase_Exists(*args, **kwargs)
  3902.  
  3903.     
  3904.     def GetEntryType(*args, **kwargs):
  3905.         '''
  3906.         GetEntryType(self, String name) -> int
  3907.  
  3908.         Get the type of the entry.  Returns one of the wx.Config.Type_XXX values.
  3909.         '''
  3910.         return _misc_.ConfigBase_GetEntryType(*args, **kwargs)
  3911.  
  3912.     
  3913.     def Read(*args, **kwargs):
  3914.         '''
  3915.         Read(self, String key, String defaultVal=EmptyString) -> String
  3916.  
  3917.         Returns the value of key if it exists, defaultVal otherwise.
  3918.         '''
  3919.         return _misc_.ConfigBase_Read(*args, **kwargs)
  3920.  
  3921.     
  3922.     def ReadInt(*args, **kwargs):
  3923.         '''
  3924.         ReadInt(self, String key, long defaultVal=0) -> long
  3925.  
  3926.         Returns the value of key if it exists, defaultVal otherwise.
  3927.         '''
  3928.         return _misc_.ConfigBase_ReadInt(*args, **kwargs)
  3929.  
  3930.     
  3931.     def ReadFloat(*args, **kwargs):
  3932.         '''
  3933.         ReadFloat(self, String key, double defaultVal=0.0) -> double
  3934.  
  3935.         Returns the value of key if it exists, defaultVal otherwise.
  3936.         '''
  3937.         return _misc_.ConfigBase_ReadFloat(*args, **kwargs)
  3938.  
  3939.     
  3940.     def ReadBool(*args, **kwargs):
  3941.         '''
  3942.         ReadBool(self, String key, bool defaultVal=False) -> bool
  3943.  
  3944.         Returns the value of key if it exists, defaultVal otherwise.
  3945.         '''
  3946.         return _misc_.ConfigBase_ReadBool(*args, **kwargs)
  3947.  
  3948.     
  3949.     def Write(*args, **kwargs):
  3950.         '''
  3951.         Write(self, String key, String value) -> bool
  3952.  
  3953.         write the value (return True on success)
  3954.         '''
  3955.         return _misc_.ConfigBase_Write(*args, **kwargs)
  3956.  
  3957.     
  3958.     def WriteInt(*args, **kwargs):
  3959.         '''
  3960.         WriteInt(self, String key, long value) -> bool
  3961.  
  3962.         write the value (return True on success)
  3963.         '''
  3964.         return _misc_.ConfigBase_WriteInt(*args, **kwargs)
  3965.  
  3966.     
  3967.     def WriteFloat(*args, **kwargs):
  3968.         '''
  3969.         WriteFloat(self, String key, double value) -> bool
  3970.  
  3971.         write the value (return True on success)
  3972.         '''
  3973.         return _misc_.ConfigBase_WriteFloat(*args, **kwargs)
  3974.  
  3975.     
  3976.     def WriteBool(*args, **kwargs):
  3977.         '''
  3978.         WriteBool(self, String key, bool value) -> bool
  3979.  
  3980.         write the value (return True on success)
  3981.         '''
  3982.         return _misc_.ConfigBase_WriteBool(*args, **kwargs)
  3983.  
  3984.     
  3985.     def Flush(*args, **kwargs):
  3986.         '''
  3987.         Flush(self, bool currentOnly=False) -> bool
  3988.  
  3989.         permanently writes all changes
  3990.         '''
  3991.         return _misc_.ConfigBase_Flush(*args, **kwargs)
  3992.  
  3993.     
  3994.     def RenameEntry(*args, **kwargs):
  3995.         '''
  3996.         RenameEntry(self, String oldName, String newName) -> bool
  3997.  
  3998.         Rename an entry.  Returns False on failure (probably because the new
  3999.         name is already taken by an existing entry)
  4000.         '''
  4001.         return _misc_.ConfigBase_RenameEntry(*args, **kwargs)
  4002.  
  4003.     
  4004.     def RenameGroup(*args, **kwargs):
  4005.         '''
  4006.         RenameGroup(self, String oldName, String newName) -> bool
  4007.  
  4008.         Rename a group.  Returns False on failure (probably because the new
  4009.         name is already taken by an existing entry)
  4010.         '''
  4011.         return _misc_.ConfigBase_RenameGroup(*args, **kwargs)
  4012.  
  4013.     
  4014.     def DeleteEntry(*args, **kwargs):
  4015.         '''
  4016.         DeleteEntry(self, String key, bool deleteGroupIfEmpty=True) -> bool
  4017.  
  4018.         Deletes the specified entry and the group it belongs to if it was the
  4019.         last key in it and the second parameter is True
  4020.         '''
  4021.         return _misc_.ConfigBase_DeleteEntry(*args, **kwargs)
  4022.  
  4023.     
  4024.     def DeleteGroup(*args, **kwargs):
  4025.         '''
  4026.         DeleteGroup(self, String key) -> bool
  4027.  
  4028.         Delete the group (with all subgroups)
  4029.         '''
  4030.         return _misc_.ConfigBase_DeleteGroup(*args, **kwargs)
  4031.  
  4032.     
  4033.     def DeleteAll(*args, **kwargs):
  4034.         '''
  4035.         DeleteAll(self) -> bool
  4036.  
  4037.         Delete the whole underlying object (disk file, registry key, ...)
  4038.         primarly intended for use by deinstallation routine.
  4039.         '''
  4040.         return _misc_.ConfigBase_DeleteAll(*args, **kwargs)
  4041.  
  4042.     
  4043.     def SetExpandEnvVars(*args, **kwargs):
  4044.         '''
  4045.         SetExpandEnvVars(self, bool doIt=True)
  4046.  
  4047.         We can automatically expand environment variables in the config
  4048.         entries this option is on by default, you can turn it on/off at any
  4049.         time)
  4050.         '''
  4051.         return _misc_.ConfigBase_SetExpandEnvVars(*args, **kwargs)
  4052.  
  4053.     
  4054.     def IsExpandingEnvVars(*args, **kwargs):
  4055.         '''
  4056.         IsExpandingEnvVars(self) -> bool
  4057.  
  4058.         Are we currently expanding environment variables?
  4059.         '''
  4060.         return _misc_.ConfigBase_IsExpandingEnvVars(*args, **kwargs)
  4061.  
  4062.     
  4063.     def SetRecordDefaults(*args, **kwargs):
  4064.         '''
  4065.         SetRecordDefaults(self, bool doIt=True)
  4066.  
  4067.         Set whether the config objec should record default values.
  4068.         '''
  4069.         return _misc_.ConfigBase_SetRecordDefaults(*args, **kwargs)
  4070.  
  4071.     
  4072.     def IsRecordingDefaults(*args, **kwargs):
  4073.         '''
  4074.         IsRecordingDefaults(self) -> bool
  4075.  
  4076.         Are we currently recording default values?
  4077.         '''
  4078.         return _misc_.ConfigBase_IsRecordingDefaults(*args, **kwargs)
  4079.  
  4080.     
  4081.     def ExpandEnvVars(*args, **kwargs):
  4082.         '''
  4083.         ExpandEnvVars(self, String str) -> String
  4084.  
  4085.         Expand any environment variables in str and return the result
  4086.         '''
  4087.         return _misc_.ConfigBase_ExpandEnvVars(*args, **kwargs)
  4088.  
  4089.     
  4090.     def GetAppName(*args, **kwargs):
  4091.         '''GetAppName(self) -> String'''
  4092.         return _misc_.ConfigBase_GetAppName(*args, **kwargs)
  4093.  
  4094.     
  4095.     def GetVendorName(*args, **kwargs):
  4096.         '''GetVendorName(self) -> String'''
  4097.         return _misc_.ConfigBase_GetVendorName(*args, **kwargs)
  4098.  
  4099.     
  4100.     def SetAppName(*args, **kwargs):
  4101.         '''SetAppName(self, String appName)'''
  4102.         return _misc_.ConfigBase_SetAppName(*args, **kwargs)
  4103.  
  4104.     
  4105.     def SetVendorName(*args, **kwargs):
  4106.         '''SetVendorName(self, String vendorName)'''
  4107.         return _misc_.ConfigBase_SetVendorName(*args, **kwargs)
  4108.  
  4109.     
  4110.     def SetStyle(*args, **kwargs):
  4111.         '''SetStyle(self, long style)'''
  4112.         return _misc_.ConfigBase_SetStyle(*args, **kwargs)
  4113.  
  4114.     
  4115.     def GetStyle(*args, **kwargs):
  4116.         '''GetStyle(self) -> long'''
  4117.         return _misc_.ConfigBase_GetStyle(*args, **kwargs)
  4118.  
  4119.  
  4120.  
  4121. class ConfigBasePtr(ConfigBase):
  4122.     
  4123.     def __init__(self, this):
  4124.         self.this = this
  4125.         if not hasattr(self, 'thisown'):
  4126.             self.thisown = 0
  4127.         
  4128.         self.__class__ = ConfigBase
  4129.  
  4130.  
  4131. _misc_.ConfigBase_swigregister(ConfigBasePtr)
  4132.  
  4133. def ConfigBase_Set(*args, **kwargs):
  4134.     '''
  4135.     ConfigBase_Set(ConfigBase config) -> ConfigBase
  4136.  
  4137.     Sets the global config object (the one returned by Get) and returns a
  4138.     reference to the previous global config object.
  4139.     '''
  4140.     return _misc_.ConfigBase_Set(*args, **kwargs)
  4141.  
  4142.  
  4143. def ConfigBase_Get(*args, **kwargs):
  4144.     '''
  4145.     ConfigBase_Get(bool createOnDemand=True) -> ConfigBase
  4146.  
  4147.     Returns the current global config object, creating one if neccessary.
  4148.     '''
  4149.     return _misc_.ConfigBase_Get(*args, **kwargs)
  4150.  
  4151.  
  4152. def ConfigBase_Create(*args, **kwargs):
  4153.     '''
  4154.     ConfigBase_Create() -> ConfigBase
  4155.  
  4156.     Create and return a new global config object.  This function will
  4157.     create the "best" implementation of wx.Config available for the
  4158.     current platform.
  4159.     '''
  4160.     return _misc_.ConfigBase_Create(*args, **kwargs)
  4161.  
  4162.  
  4163. def ConfigBase_DontCreateOnDemand(*args, **kwargs):
  4164.     """
  4165.     ConfigBase_DontCreateOnDemand()
  4166.  
  4167.     Should Get() try to create a new log object if there isn't a current
  4168.     one?
  4169.     """
  4170.     return _misc_.ConfigBase_DontCreateOnDemand(*args, **kwargs)
  4171.  
  4172.  
  4173. class Config(ConfigBase):
  4174.     '''
  4175.     This ConfigBase-derived class will use the registry on Windows,
  4176.     and will be a wx.FileConfig on other platforms.
  4177.     '''
  4178.     
  4179.     def __repr__(self):
  4180.         return '<%s.%s; proxy of C++ wxConfig instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4181.  
  4182.     
  4183.     def __init__(self, *args, **kwargs):
  4184.         '''
  4185.         __init__(self, String appName=EmptyString, String vendorName=EmptyString, 
  4186.             String localFilename=EmptyString, String globalFilename=EmptyString, 
  4187.             long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> Config
  4188.         '''
  4189.         newobj = _misc_.new_Config(*args, **kwargs)
  4190.         self.this = newobj.this
  4191.         self.thisown = 1
  4192.         del newobj.thisown
  4193.  
  4194.     
  4195.     def __del__(self, destroy = _misc_.delete_Config):
  4196.         '''__del__(self)'''
  4197.         
  4198.         try:
  4199.             if self.thisown:
  4200.                 destroy(self)
  4201.         except:
  4202.             pass
  4203.  
  4204.  
  4205.  
  4206.  
  4207. class ConfigPtr(Config):
  4208.     
  4209.     def __init__(self, this):
  4210.         self.this = this
  4211.         if not hasattr(self, 'thisown'):
  4212.             self.thisown = 0
  4213.         
  4214.         self.__class__ = Config
  4215.  
  4216.  
  4217. _misc_.Config_swigregister(ConfigPtr)
  4218.  
  4219. class FileConfig(ConfigBase):
  4220.     '''This config class will use a file for storage on all platforms.'''
  4221.     
  4222.     def __repr__(self):
  4223.         return '<%s.%s; proxy of C++ wxFileConfig instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4224.  
  4225.     
  4226.     def __init__(self, *args, **kwargs):
  4227.         '''
  4228.         __init__(self, String appName=EmptyString, String vendorName=EmptyString, 
  4229.             String localFilename=EmptyString, String globalFilename=EmptyString, 
  4230.             long style=wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE) -> FileConfig
  4231.         '''
  4232.         newobj = _misc_.new_FileConfig(*args, **kwargs)
  4233.         self.this = newobj.this
  4234.         self.thisown = 1
  4235.         del newobj.thisown
  4236.  
  4237.     
  4238.     def __del__(self, destroy = _misc_.delete_FileConfig):
  4239.         '''__del__(self)'''
  4240.         
  4241.         try:
  4242.             if self.thisown:
  4243.                 destroy(self)
  4244.         except:
  4245.             pass
  4246.  
  4247.  
  4248.  
  4249.  
  4250. class FileConfigPtr(FileConfig):
  4251.     
  4252.     def __init__(self, this):
  4253.         self.this = this
  4254.         if not hasattr(self, 'thisown'):
  4255.             self.thisown = 0
  4256.         
  4257.         self.__class__ = FileConfig
  4258.  
  4259.  
  4260. _misc_.FileConfig_swigregister(FileConfigPtr)
  4261.  
  4262. class ConfigPathChanger(object):
  4263.     '''
  4264.     A handy little class which changes current path to the path of given
  4265.     entry and restores it in the destructoir: so if you declare a local
  4266.     variable of this type, you work in the entry directory and the path is
  4267.     automatically restored when the function returns.
  4268.     '''
  4269.     
  4270.     def __repr__(self):
  4271.         return '<%s.%s; proxy of C++ wxConfigPathChanger instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4272.  
  4273.     
  4274.     def __init__(self, *args, **kwargs):
  4275.         '''__init__(self, ConfigBase config, String entry) -> ConfigPathChanger'''
  4276.         newobj = _misc_.new_ConfigPathChanger(*args, **kwargs)
  4277.         self.this = newobj.this
  4278.         self.thisown = 1
  4279.         del newobj.thisown
  4280.  
  4281.     
  4282.     def __del__(self, destroy = _misc_.delete_ConfigPathChanger):
  4283.         '''__del__(self)'''
  4284.         
  4285.         try:
  4286.             if self.thisown:
  4287.                 destroy(self)
  4288.         except:
  4289.             pass
  4290.  
  4291.  
  4292.     
  4293.     def Name(*args, **kwargs):
  4294.         '''
  4295.         Name(self) -> String
  4296.  
  4297.         Get the key name
  4298.         '''
  4299.         return _misc_.ConfigPathChanger_Name(*args, **kwargs)
  4300.  
  4301.  
  4302.  
  4303. class ConfigPathChangerPtr(ConfigPathChanger):
  4304.     
  4305.     def __init__(self, this):
  4306.         self.this = this
  4307.         if not hasattr(self, 'thisown'):
  4308.             self.thisown = 0
  4309.         
  4310.         self.__class__ = ConfigPathChanger
  4311.  
  4312.  
  4313. _misc_.ConfigPathChanger_swigregister(ConfigPathChangerPtr)
  4314.  
  4315. def ExpandEnvVars(*args, **kwargs):
  4316.     """
  4317.     ExpandEnvVars(String sz) -> String
  4318.  
  4319.     Replace environment variables ($SOMETHING) with their values. The
  4320.     format is $VARNAME or ${VARNAME} where VARNAME contains alphanumeric
  4321.     characters and '_' only. '$' must be escaped ('\\$') in order to be
  4322.     taken literally.
  4323.     """
  4324.     return _misc_.ExpandEnvVars(*args, **kwargs)
  4325.  
  4326.  
  4327. class DateTime(object):
  4328.     '''Proxy of C++ DateTime class'''
  4329.     
  4330.     def __repr__(self):
  4331.         return '<%s.%s; proxy of C++ wxDateTime instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  4332.  
  4333.     Local = _misc_.DateTime_Local
  4334.     GMT_12 = _misc_.DateTime_GMT_12
  4335.     GMT_11 = _misc_.DateTime_GMT_11
  4336.     GMT_10 = _misc_.DateTime_GMT_10
  4337.     GMT_9 = _misc_.DateTime_GMT_9
  4338.     GMT_8 = _misc_.DateTime_GMT_8
  4339.     GMT_7 = _misc_.DateTime_GMT_7
  4340.     GMT_6 = _misc_.DateTime_GMT_6
  4341.     GMT_5 = _misc_.DateTime_GMT_5
  4342.     GMT_4 = _misc_.DateTime_GMT_4
  4343.     GMT_3 = _misc_.DateTime_GMT_3
  4344.     GMT_2 = _misc_.DateTime_GMT_2
  4345.     GMT_1 = _misc_.DateTime_GMT_1
  4346.     GMT0 = _misc_.DateTime_GMT0
  4347.     GMT1 = _misc_.DateTime_GMT1
  4348.     GMT2 = _misc_.DateTime_GMT2
  4349.     GMT3 = _misc_.DateTime_GMT3
  4350.     GMT4 = _misc_.DateTime_GMT4
  4351.     GMT5 = _misc_.DateTime_GMT5
  4352.     GMT6 = _misc_.DateTime_GMT6
  4353.     GMT7 = _misc_.DateTime_GMT7
  4354.     GMT8 = _misc_.DateTime_GMT8
  4355.     GMT9 = _misc_.DateTime_GMT9
  4356.     GMT10 = _misc_.DateTime_GMT10
  4357.     GMT11 = _misc_.DateTime_GMT11
  4358.     GMT12 = _misc_.DateTime_GMT12
  4359.     WET = _misc_.DateTime_WET
  4360.     WEST = _misc_.DateTime_WEST
  4361.     CET = _misc_.DateTime_CET
  4362.     CEST = _misc_.DateTime_CEST
  4363.     EET = _misc_.DateTime_EET
  4364.     EEST = _misc_.DateTime_EEST
  4365.     MSK = _misc_.DateTime_MSK
  4366.     MSD = _misc_.DateTime_MSD
  4367.     AST = _misc_.DateTime_AST
  4368.     ADT = _misc_.DateTime_ADT
  4369.     EST = _misc_.DateTime_EST
  4370.     EDT = _misc_.DateTime_EDT
  4371.     CST = _misc_.DateTime_CST
  4372.     CDT = _misc_.DateTime_CDT
  4373.     MST = _misc_.DateTime_MST
  4374.     MDT = _misc_.DateTime_MDT
  4375.     PST = _misc_.DateTime_PST
  4376.     PDT = _misc_.DateTime_PDT
  4377.     HST = _misc_.DateTime_HST
  4378.     AKST = _misc_.DateTime_AKST
  4379.     AKDT = _misc_.DateTime_AKDT
  4380.     A_WST = _misc_.DateTime_A_WST
  4381.     A_CST = _misc_.DateTime_A_CST
  4382.     A_EST = _misc_.DateTime_A_EST
  4383.     A_ESST = _misc_.DateTime_A_ESST
  4384.     UTC = _misc_.DateTime_UTC
  4385.     Gregorian = _misc_.DateTime_Gregorian
  4386.     Julian = _misc_.DateTime_Julian
  4387.     Gr_Unknown = _misc_.DateTime_Gr_Unknown
  4388.     Gr_Standard = _misc_.DateTime_Gr_Standard
  4389.     Gr_Alaska = _misc_.DateTime_Gr_Alaska
  4390.     Gr_Albania = _misc_.DateTime_Gr_Albania
  4391.     Gr_Austria = _misc_.DateTime_Gr_Austria
  4392.     Gr_Austria_Brixen = _misc_.DateTime_Gr_Austria_Brixen
  4393.     Gr_Austria_Salzburg = _misc_.DateTime_Gr_Austria_Salzburg
  4394.     Gr_Austria_Tyrol = _misc_.DateTime_Gr_Austria_Tyrol
  4395.     Gr_Austria_Carinthia = _misc_.DateTime_Gr_Austria_Carinthia
  4396.     Gr_Austria_Styria = _misc_.DateTime_Gr_Austria_Styria
  4397.     Gr_Belgium = _misc_.DateTime_Gr_Belgium
  4398.     Gr_Bulgaria = _misc_.DateTime_Gr_Bulgaria
  4399.     Gr_Bulgaria_1 = _misc_.DateTime_Gr_Bulgaria_1
  4400.     Gr_Bulgaria_2 = _misc_.DateTime_Gr_Bulgaria_2
  4401.     Gr_Bulgaria_3 = _misc_.DateTime_Gr_Bulgaria_3
  4402.     Gr_Canada = _misc_.DateTime_Gr_Canada
  4403.     Gr_China = _misc_.DateTime_Gr_China
  4404.     Gr_China_1 = _misc_.DateTime_Gr_China_1
  4405.     Gr_China_2 = _misc_.DateTime_Gr_China_2
  4406.     Gr_Czechoslovakia = _misc_.DateTime_Gr_Czechoslovakia
  4407.     Gr_Denmark = _misc_.DateTime_Gr_Denmark
  4408.     Gr_Egypt = _misc_.DateTime_Gr_Egypt
  4409.     Gr_Estonia = _misc_.DateTime_Gr_Estonia
  4410.     Gr_Finland = _misc_.DateTime_Gr_Finland
  4411.     Gr_France = _misc_.DateTime_Gr_France
  4412.     Gr_France_Alsace = _misc_.DateTime_Gr_France_Alsace
  4413.     Gr_France_Lorraine = _misc_.DateTime_Gr_France_Lorraine
  4414.     Gr_France_Strasbourg = _misc_.DateTime_Gr_France_Strasbourg
  4415.     Gr_Germany = _misc_.DateTime_Gr_Germany
  4416.     Gr_Germany_Catholic = _misc_.DateTime_Gr_Germany_Catholic
  4417.     Gr_Germany_Prussia = _misc_.DateTime_Gr_Germany_Prussia
  4418.     Gr_Germany_Protestant = _misc_.DateTime_Gr_Germany_Protestant
  4419.     Gr_GreatBritain = _misc_.DateTime_Gr_GreatBritain
  4420.     Gr_Greece = _misc_.DateTime_Gr_Greece
  4421.     Gr_Hungary = _misc_.DateTime_Gr_Hungary
  4422.     Gr_Ireland = _misc_.DateTime_Gr_Ireland
  4423.     Gr_Italy = _misc_.DateTime_Gr_Italy
  4424.     Gr_Japan = _misc_.DateTime_Gr_Japan
  4425.     Gr_Japan_1 = _misc_.DateTime_Gr_Japan_1
  4426.     Gr_Japan_2 = _misc_.DateTime_Gr_Japan_2
  4427.     Gr_Japan_3 = _misc_.DateTime_Gr_Japan_3
  4428.     Gr_Latvia = _misc_.DateTime_Gr_Latvia
  4429.     Gr_Lithuania = _misc_.DateTime_Gr_Lithuania
  4430.     Gr_Luxemburg = _misc_.DateTime_Gr_Luxemburg
  4431.     Gr_Netherlands = _misc_.DateTime_Gr_Netherlands
  4432.     Gr_Netherlands_Groningen = _misc_.DateTime_Gr_Netherlands_Groningen
  4433.     Gr_Netherlands_Gelderland = _misc_.DateTime_Gr_Netherlands_Gelderland
  4434.     Gr_Netherlands_Utrecht = _misc_.DateTime_Gr_Netherlands_Utrecht
  4435.     Gr_Netherlands_Friesland = _misc_.DateTime_Gr_Netherlands_Friesland
  4436.     Gr_Norway = _misc_.DateTime_Gr_Norway
  4437.     Gr_Poland = _misc_.DateTime_Gr_Poland
  4438.     Gr_Portugal = _misc_.DateTime_Gr_Portugal
  4439.     Gr_Romania = _misc_.DateTime_Gr_Romania
  4440.     Gr_Russia = _misc_.DateTime_Gr_Russia
  4441.     Gr_Scotland = _misc_.DateTime_Gr_Scotland
  4442.     Gr_Spain = _misc_.DateTime_Gr_Spain
  4443.     Gr_Sweden = _misc_.DateTime_Gr_Sweden
  4444.     Gr_Switzerland = _misc_.DateTime_Gr_Switzerland
  4445.     Gr_Switzerland_Catholic = _misc_.DateTime_Gr_Switzerland_Catholic
  4446.     Gr_Switzerland_Protestant = _misc_.DateTime_Gr_Switzerland_Protestant
  4447.     Gr_Turkey = _misc_.DateTime_Gr_Turkey
  4448.     Gr_USA = _misc_.DateTime_Gr_USA
  4449.     Gr_Wales = _misc_.DateTime_Gr_Wales
  4450.     Gr_Yugoslavia = _misc_.DateTime_Gr_Yugoslavia
  4451.     Country_Unknown = _misc_.DateTime_Country_Unknown
  4452.     Country_Default = _misc_.DateTime_Country_Default
  4453.     Country_WesternEurope_Start = _misc_.DateTime_Country_WesternEurope_Start
  4454.     Country_EEC = _misc_.DateTime_Country_EEC
  4455.     France = _misc_.DateTime_France
  4456.     Germany = _misc_.DateTime_Germany
  4457.     UK = _misc_.DateTime_UK
  4458.     Country_WesternEurope_End = _misc_.DateTime_Country_WesternEurope_End
  4459.     Russia = _misc_.DateTime_Russia
  4460.     USA = _misc_.DateTime_USA
  4461.     Jan = _misc_.DateTime_Jan
  4462.     Feb = _misc_.DateTime_Feb
  4463.     Mar = _misc_.DateTime_Mar
  4464.     Apr = _misc_.DateTime_Apr
  4465.     May = _misc_.DateTime_May
  4466.     Jun = _misc_.DateTime_Jun
  4467.     Jul = _misc_.DateTime_Jul
  4468.     Aug = _misc_.DateTime_Aug
  4469.     Sep = _misc_.DateTime_Sep
  4470.     Oct = _misc_.DateTime_Oct
  4471.     Nov = _misc_.DateTime_Nov
  4472.     Dec = _misc_.DateTime_Dec
  4473.     Inv_Month = _misc_.DateTime_Inv_Month
  4474.     Sun = _misc_.DateTime_Sun
  4475.     Mon = _misc_.DateTime_Mon
  4476.     Tue = _misc_.DateTime_Tue
  4477.     Wed = _misc_.DateTime_Wed
  4478.     Thu = _misc_.DateTime_Thu
  4479.     Fri = _misc_.DateTime_Fri
  4480.     Sat = _misc_.DateTime_Sat
  4481.     Inv_WeekDay = _misc_.DateTime_Inv_WeekDay
  4482.     Inv_Year = _misc_.DateTime_Inv_Year
  4483.     Name_Full = _misc_.DateTime_Name_Full
  4484.     Name_Abbr = _misc_.DateTime_Name_Abbr
  4485.     Default_First = _misc_.DateTime_Default_First
  4486.     Monday_First = _misc_.DateTime_Monday_First
  4487.     Sunday_First = _misc_.DateTime_Sunday_First
  4488.     
  4489.     def SetCountry(*args, **kwargs):
  4490.         '''SetCountry(int country)'''
  4491.         return _misc_.DateTime_SetCountry(*args, **kwargs)
  4492.  
  4493.     SetCountry = staticmethod(SetCountry)
  4494.     
  4495.     def GetCountry(*args, **kwargs):
  4496.         '''GetCountry() -> int'''
  4497.         return _misc_.DateTime_GetCountry(*args, **kwargs)
  4498.  
  4499.     GetCountry = staticmethod(GetCountry)
  4500.     
  4501.     def IsWestEuropeanCountry(*args, **kwargs):
  4502.         '''IsWestEuropeanCountry(int country=Country_Default) -> bool'''
  4503.         return _misc_.DateTime_IsWestEuropeanCountry(*args, **kwargs)
  4504.  
  4505.     IsWestEuropeanCountry = staticmethod(IsWestEuropeanCountry)
  4506.     
  4507.     def GetCurrentYear(*args, **kwargs):
  4508.         '''GetCurrentYear(int cal=Gregorian) -> int'''
  4509.         return _misc_.DateTime_GetCurrentYear(*args, **kwargs)
  4510.  
  4511.     GetCurrentYear = staticmethod(GetCurrentYear)
  4512.     
  4513.     def ConvertYearToBC(*args, **kwargs):
  4514.         '''ConvertYearToBC(int year) -> int'''
  4515.         return _misc_.DateTime_ConvertYearToBC(*args, **kwargs)
  4516.  
  4517.     ConvertYearToBC = staticmethod(ConvertYearToBC)
  4518.     
  4519.     def GetCurrentMonth(*args, **kwargs):
  4520.         '''GetCurrentMonth(int cal=Gregorian) -> int'''
  4521.         return _misc_.DateTime_GetCurrentMonth(*args, **kwargs)
  4522.  
  4523.     GetCurrentMonth = staticmethod(GetCurrentMonth)
  4524.     
  4525.     def IsLeapYear(*args, **kwargs):
  4526.         '''IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool'''
  4527.         return _misc_.DateTime_IsLeapYear(*args, **kwargs)
  4528.  
  4529.     IsLeapYear = staticmethod(IsLeapYear)
  4530.     
  4531.     def GetCentury(*args, **kwargs):
  4532.         '''GetCentury(int year=Inv_Year) -> int'''
  4533.         return _misc_.DateTime_GetCentury(*args, **kwargs)
  4534.  
  4535.     GetCentury = staticmethod(GetCentury)
  4536.     
  4537.     def GetNumberOfDaysinYear(*args, **kwargs):
  4538.         '''GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int'''
  4539.         return _misc_.DateTime_GetNumberOfDaysinYear(*args, **kwargs)
  4540.  
  4541.     GetNumberOfDaysinYear = staticmethod(GetNumberOfDaysinYear)
  4542.     
  4543.     def GetNumberOfDaysInMonth(*args, **kwargs):
  4544.         '''GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int'''
  4545.         return _misc_.DateTime_GetNumberOfDaysInMonth(*args, **kwargs)
  4546.  
  4547.     GetNumberOfDaysInMonth = staticmethod(GetNumberOfDaysInMonth)
  4548.     
  4549.     def GetMonthName(*args, **kwargs):
  4550.         '''GetMonthName(int month, int flags=Name_Full) -> String'''
  4551.         return _misc_.DateTime_GetMonthName(*args, **kwargs)
  4552.  
  4553.     GetMonthName = staticmethod(GetMonthName)
  4554.     
  4555.     def GetWeekDayName(*args, **kwargs):
  4556.         '''GetWeekDayName(int weekday, int flags=Name_Full) -> String'''
  4557.         return _misc_.DateTime_GetWeekDayName(*args, **kwargs)
  4558.  
  4559.     GetWeekDayName = staticmethod(GetWeekDayName)
  4560.     
  4561.     def GetAmPmStrings(*args, **kwargs):
  4562.         '''
  4563.         GetAmPmStrings() -> (am, pm)
  4564.  
  4565.         Get the AM and PM strings in the current locale (may be empty)
  4566.         '''
  4567.         return _misc_.DateTime_GetAmPmStrings(*args, **kwargs)
  4568.  
  4569.     GetAmPmStrings = staticmethod(GetAmPmStrings)
  4570.     
  4571.     def IsDSTApplicable(*args, **kwargs):
  4572.         '''IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool'''
  4573.         return _misc_.DateTime_IsDSTApplicable(*args, **kwargs)
  4574.  
  4575.     IsDSTApplicable = staticmethod(IsDSTApplicable)
  4576.     
  4577.     def GetBeginDST(*args, **kwargs):
  4578.         '''GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime'''
  4579.         return _misc_.DateTime_GetBeginDST(*args, **kwargs)
  4580.  
  4581.     GetBeginDST = staticmethod(GetBeginDST)
  4582.     
  4583.     def GetEndDST(*args, **kwargs):
  4584.         '''GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime'''
  4585.         return _misc_.DateTime_GetEndDST(*args, **kwargs)
  4586.  
  4587.     GetEndDST = staticmethod(GetEndDST)
  4588.     
  4589.     def Now(*args, **kwargs):
  4590.         '''Now() -> DateTime'''
  4591.         return _misc_.DateTime_Now(*args, **kwargs)
  4592.  
  4593.     Now = staticmethod(Now)
  4594.     
  4595.     def UNow(*args, **kwargs):
  4596.         '''UNow() -> DateTime'''
  4597.         return _misc_.DateTime_UNow(*args, **kwargs)
  4598.  
  4599.     UNow = staticmethod(UNow)
  4600.     
  4601.     def Today(*args, **kwargs):
  4602.         '''Today() -> DateTime'''
  4603.         return _misc_.DateTime_Today(*args, **kwargs)
  4604.  
  4605.     Today = staticmethod(Today)
  4606.     
  4607.     def __init__(self, *args, **kwargs):
  4608.         '''__init__(self) -> DateTime'''
  4609.         newobj = _misc_.new_DateTime(*args, **kwargs)
  4610.         self.this = newobj.this
  4611.         self.thisown = 1
  4612.         del newobj.thisown
  4613.  
  4614.     
  4615.     def __del__(self, destroy = _misc_.delete_DateTime):
  4616.         '''__del__(self)'''
  4617.         
  4618.         try:
  4619.             if self.thisown:
  4620.                 destroy(self)
  4621.         except:
  4622.             pass
  4623.  
  4624.  
  4625.     
  4626.     def SetToCurrent(*args, **kwargs):
  4627.         '''SetToCurrent(self) -> DateTime'''
  4628.         return _misc_.DateTime_SetToCurrent(*args, **kwargs)
  4629.  
  4630.     
  4631.     def SetTimeT(*args, **kwargs):
  4632.         '''SetTimeT(self, time_t timet) -> DateTime'''
  4633.         return _misc_.DateTime_SetTimeT(*args, **kwargs)
  4634.  
  4635.     
  4636.     def SetJDN(*args, **kwargs):
  4637.         '''SetJDN(self, double jdn) -> DateTime'''
  4638.         return _misc_.DateTime_SetJDN(*args, **kwargs)
  4639.  
  4640.     
  4641.     def SetHMS(*args, **kwargs):
  4642.         '''SetHMS(self, int hour, int minute=0, int second=0, int millisec=0) -> DateTime'''
  4643.         return _misc_.DateTime_SetHMS(*args, **kwargs)
  4644.  
  4645.     
  4646.     def Set(*args, **kwargs):
  4647.         '''
  4648.         Set(self, int day, int month=Inv_Month, int year=Inv_Year, int hour=0, 
  4649.             int minute=0, int second=0, int millisec=0) -> DateTime
  4650.         '''
  4651.         return _misc_.DateTime_Set(*args, **kwargs)
  4652.  
  4653.     
  4654.     def ResetTime(*args, **kwargs):
  4655.         '''ResetTime(self) -> DateTime'''
  4656.         return _misc_.DateTime_ResetTime(*args, **kwargs)
  4657.  
  4658.     
  4659.     def SetYear(*args, **kwargs):
  4660.         '''SetYear(self, int year) -> DateTime'''
  4661.         return _misc_.DateTime_SetYear(*args, **kwargs)
  4662.  
  4663.     
  4664.     def SetMonth(*args, **kwargs):
  4665.         '''SetMonth(self, int month) -> DateTime'''
  4666.         return _misc_.DateTime_SetMonth(*args, **kwargs)
  4667.  
  4668.     
  4669.     def SetDay(*args, **kwargs):
  4670.         '''SetDay(self, int day) -> DateTime'''
  4671.         return _misc_.DateTime_SetDay(*args, **kwargs)
  4672.  
  4673.     
  4674.     def SetHour(*args, **kwargs):
  4675.         '''SetHour(self, int hour) -> DateTime'''
  4676.         return _misc_.DateTime_SetHour(*args, **kwargs)
  4677.  
  4678.     
  4679.     def SetMinute(*args, **kwargs):
  4680.         '''SetMinute(self, int minute) -> DateTime'''
  4681.         return _misc_.DateTime_SetMinute(*args, **kwargs)
  4682.  
  4683.     
  4684.     def SetSecond(*args, **kwargs):
  4685.         '''SetSecond(self, int second) -> DateTime'''
  4686.         return _misc_.DateTime_SetSecond(*args, **kwargs)
  4687.  
  4688.     
  4689.     def SetMillisecond(*args, **kwargs):
  4690.         '''SetMillisecond(self, int millisecond) -> DateTime'''
  4691.         return _misc_.DateTime_SetMillisecond(*args, **kwargs)
  4692.  
  4693.     
  4694.     def SetToWeekDayInSameWeek(*args, **kwargs):
  4695.         '''SetToWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime'''
  4696.         return _misc_.DateTime_SetToWeekDayInSameWeek(*args, **kwargs)
  4697.  
  4698.     
  4699.     def GetWeekDayInSameWeek(*args, **kwargs):
  4700.         '''GetWeekDayInSameWeek(self, int weekday, int flags=Monday_First) -> DateTime'''
  4701.         return _misc_.DateTime_GetWeekDayInSameWeek(*args, **kwargs)
  4702.  
  4703.     
  4704.     def SetToNextWeekDay(*args, **kwargs):
  4705.         '''SetToNextWeekDay(self, int weekday) -> DateTime'''
  4706.         return _misc_.DateTime_SetToNextWeekDay(*args, **kwargs)
  4707.  
  4708.     
  4709.     def GetNextWeekDay(*args, **kwargs):
  4710.         '''GetNextWeekDay(self, int weekday) -> DateTime'''
  4711.         return _misc_.DateTime_GetNextWeekDay(*args, **kwargs)
  4712.  
  4713.     
  4714.     def SetToPrevWeekDay(*args, **kwargs):
  4715.         '''SetToPrevWeekDay(self, int weekday) -> DateTime'''
  4716.         return _misc_.DateTime_SetToPrevWeekDay(*args, **kwargs)
  4717.  
  4718.     
  4719.     def GetPrevWeekDay(*args, **kwargs):
  4720.         '''GetPrevWeekDay(self, int weekday) -> DateTime'''
  4721.         return _misc_.DateTime_GetPrevWeekDay(*args, **kwargs)
  4722.  
  4723.     
  4724.     def SetToWeekDay(*args, **kwargs):
  4725.         '''SetToWeekDay(self, int weekday, int n=1, int month=Inv_Month, int year=Inv_Year) -> bool'''
  4726.         return _misc_.DateTime_SetToWeekDay(*args, **kwargs)
  4727.  
  4728.     
  4729.     def SetToLastWeekDay(*args, **kwargs):
  4730.         '''SetToLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> bool'''
  4731.         return _misc_.DateTime_SetToLastWeekDay(*args, **kwargs)
  4732.  
  4733.     
  4734.     def GetLastWeekDay(*args, **kwargs):
  4735.         '''GetLastWeekDay(self, int weekday, int month=Inv_Month, int year=Inv_Year) -> DateTime'''
  4736.         return _misc_.DateTime_GetLastWeekDay(*args, **kwargs)
  4737.  
  4738.     
  4739.     def SetToTheWeek(*args, **kwargs):
  4740.         '''SetToTheWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> bool'''
  4741.         return _misc_.DateTime_SetToTheWeek(*args, **kwargs)
  4742.  
  4743.     
  4744.     def GetWeek(*args, **kwargs):
  4745.         '''GetWeek(self, int numWeek, int weekday=Mon, int flags=Monday_First) -> DateTime'''
  4746.         return _misc_.DateTime_GetWeek(*args, **kwargs)
  4747.  
  4748.     SetToTheWeek = wx._deprecated(SetToTheWeek, 'SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead')
  4749.     GetWeek = wx._deprecated(GetWeek, 'GetWeek is deprecated, use GetWeekOfYear instead')
  4750.     
  4751.     def SetToWeekOfYear(*args, **kwargs):
  4752.         '''SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime'''
  4753.         return _misc_.DateTime_SetToWeekOfYear(*args, **kwargs)
  4754.  
  4755.     SetToWeekOfYear = staticmethod(SetToWeekOfYear)
  4756.     
  4757.     def SetToLastMonthDay(*args, **kwargs):
  4758.         '''SetToLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime'''
  4759.         return _misc_.DateTime_SetToLastMonthDay(*args, **kwargs)
  4760.  
  4761.     
  4762.     def GetLastMonthDay(*args, **kwargs):
  4763.         '''GetLastMonthDay(self, int month=Inv_Month, int year=Inv_Year) -> DateTime'''
  4764.         return _misc_.DateTime_GetLastMonthDay(*args, **kwargs)
  4765.  
  4766.     
  4767.     def SetToYearDay(*args, **kwargs):
  4768.         '''SetToYearDay(self, int yday) -> DateTime'''
  4769.         return _misc_.DateTime_SetToYearDay(*args, **kwargs)
  4770.  
  4771.     
  4772.     def GetYearDay(*args, **kwargs):
  4773.         '''GetYearDay(self, int yday) -> DateTime'''
  4774.         return _misc_.DateTime_GetYearDay(*args, **kwargs)
  4775.  
  4776.     
  4777.     def GetJulianDayNumber(*args, **kwargs):
  4778.         '''GetJulianDayNumber(self) -> double'''
  4779.         return _misc_.DateTime_GetJulianDayNumber(*args, **kwargs)
  4780.  
  4781.     
  4782.     def GetJDN(*args, **kwargs):
  4783.         '''GetJDN(self) -> double'''
  4784.         return _misc_.DateTime_GetJDN(*args, **kwargs)
  4785.  
  4786.     
  4787.     def GetModifiedJulianDayNumber(*args, **kwargs):
  4788.         '''GetModifiedJulianDayNumber(self) -> double'''
  4789.         return _misc_.DateTime_GetModifiedJulianDayNumber(*args, **kwargs)
  4790.  
  4791.     
  4792.     def GetMJD(*args, **kwargs):
  4793.         '''GetMJD(self) -> double'''
  4794.         return _misc_.DateTime_GetMJD(*args, **kwargs)
  4795.  
  4796.     
  4797.     def GetRataDie(*args, **kwargs):
  4798.         '''GetRataDie(self) -> double'''
  4799.         return _misc_.DateTime_GetRataDie(*args, **kwargs)
  4800.  
  4801.     
  4802.     def ToTimezone(*args, **kwargs):
  4803.         '''ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime'''
  4804.         return _misc_.DateTime_ToTimezone(*args, **kwargs)
  4805.  
  4806.     
  4807.     def MakeTimezone(*args, **kwargs):
  4808.         '''MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime'''
  4809.         return _misc_.DateTime_MakeTimezone(*args, **kwargs)
  4810.  
  4811.     
  4812.     def FromTimezone(*args, **kwargs):
  4813.         '''FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime'''
  4814.         return _misc_.DateTime_FromTimezone(*args, **kwargs)
  4815.  
  4816.     
  4817.     def MakeFromTimezone(*args, **kwargs):
  4818.         '''MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime'''
  4819.         return _misc_.DateTime_MakeFromTimezone(*args, **kwargs)
  4820.  
  4821.     
  4822.     def ToUTC(*args, **kwargs):
  4823.         '''ToUTC(self, bool noDST=False) -> DateTime'''
  4824.         return _misc_.DateTime_ToUTC(*args, **kwargs)
  4825.  
  4826.     
  4827.     def MakeUTC(*args, **kwargs):
  4828.         '''MakeUTC(self, bool noDST=False) -> DateTime'''
  4829.         return _misc_.DateTime_MakeUTC(*args, **kwargs)
  4830.  
  4831.     
  4832.     def ToGMT(*args, **kwargs):
  4833.         '''ToGMT(self, bool noDST=False) -> DateTime'''
  4834.         return _misc_.DateTime_ToGMT(*args, **kwargs)
  4835.  
  4836.     
  4837.     def MakeGMT(*args, **kwargs):
  4838.         '''MakeGMT(self, bool noDST=False) -> DateTime'''
  4839.         return _misc_.DateTime_MakeGMT(*args, **kwargs)
  4840.  
  4841.     
  4842.     def FromUTC(*args, **kwargs):
  4843.         '''FromUTC(self, bool noDST=False) -> DateTime'''
  4844.         return _misc_.DateTime_FromUTC(*args, **kwargs)
  4845.  
  4846.     
  4847.     def MakeFromUTC(*args, **kwargs):
  4848.         '''MakeFromUTC(self, bool noDST=False) -> DateTime'''
  4849.         return _misc_.DateTime_MakeFromUTC(*args, **kwargs)
  4850.  
  4851.     
  4852.     def IsDST(*args, **kwargs):
  4853.         '''IsDST(self, int country=Country_Default) -> int'''
  4854.         return _misc_.DateTime_IsDST(*args, **kwargs)
  4855.  
  4856.     
  4857.     def IsValid(*args, **kwargs):
  4858.         '''IsValid(self) -> bool'''
  4859.         return _misc_.DateTime_IsValid(*args, **kwargs)
  4860.  
  4861.     Ok = IsValid
  4862.     
  4863.     def __nonzero__(self):
  4864.         return self.Ok()
  4865.  
  4866.     
  4867.     def GetTicks(*args, **kwargs):
  4868.         '''GetTicks(self) -> time_t'''
  4869.         return _misc_.DateTime_GetTicks(*args, **kwargs)
  4870.  
  4871.     
  4872.     def GetYear(*args, **kwargs):
  4873.         '''GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int'''
  4874.         return _misc_.DateTime_GetYear(*args, **kwargs)
  4875.  
  4876.     
  4877.     def GetMonth(*args, **kwargs):
  4878.         '''GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int'''
  4879.         return _misc_.DateTime_GetMonth(*args, **kwargs)
  4880.  
  4881.     
  4882.     def GetDay(*args, **kwargs):
  4883.         '''GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int'''
  4884.         return _misc_.DateTime_GetDay(*args, **kwargs)
  4885.  
  4886.     
  4887.     def GetWeekDay(*args, **kwargs):
  4888.         '''GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int'''
  4889.         return _misc_.DateTime_GetWeekDay(*args, **kwargs)
  4890.  
  4891.     
  4892.     def GetHour(*args, **kwargs):
  4893.         '''GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int'''
  4894.         return _misc_.DateTime_GetHour(*args, **kwargs)
  4895.  
  4896.     
  4897.     def GetMinute(*args, **kwargs):
  4898.         '''GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int'''
  4899.         return _misc_.DateTime_GetMinute(*args, **kwargs)
  4900.  
  4901.     
  4902.     def GetSecond(*args, **kwargs):
  4903.         '''GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int'''
  4904.         return _misc_.DateTime_GetSecond(*args, **kwargs)
  4905.  
  4906.     
  4907.     def GetMillisecond(*args, **kwargs):
  4908.         '''GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int'''
  4909.         return _misc_.DateTime_GetMillisecond(*args, **kwargs)
  4910.  
  4911.     
  4912.     def GetDayOfYear(*args, **kwargs):
  4913.         '''GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int'''
  4914.         return _misc_.DateTime_GetDayOfYear(*args, **kwargs)
  4915.  
  4916.     
  4917.     def GetWeekOfYear(*args, **kwargs):
  4918.         '''GetWeekOfYear(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int'''
  4919.         return _misc_.DateTime_GetWeekOfYear(*args, **kwargs)
  4920.  
  4921.     
  4922.     def GetWeekOfMonth(*args, **kwargs):
  4923.         '''GetWeekOfMonth(self, int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int'''
  4924.         return _misc_.DateTime_GetWeekOfMonth(*args, **kwargs)
  4925.  
  4926.     
  4927.     def IsWorkDay(*args, **kwargs):
  4928.         '''IsWorkDay(self, int country=Country_Default) -> bool'''
  4929.         return _misc_.DateTime_IsWorkDay(*args, **kwargs)
  4930.  
  4931.     
  4932.     def IsEqualTo(*args, **kwargs):
  4933.         '''IsEqualTo(self, DateTime datetime) -> bool'''
  4934.         return _misc_.DateTime_IsEqualTo(*args, **kwargs)
  4935.  
  4936.     
  4937.     def IsEarlierThan(*args, **kwargs):
  4938.         '''IsEarlierThan(self, DateTime datetime) -> bool'''
  4939.         return _misc_.DateTime_IsEarlierThan(*args, **kwargs)
  4940.  
  4941.     
  4942.     def IsLaterThan(*args, **kwargs):
  4943.         '''IsLaterThan(self, DateTime datetime) -> bool'''
  4944.         return _misc_.DateTime_IsLaterThan(*args, **kwargs)
  4945.  
  4946.     
  4947.     def IsStrictlyBetween(*args, **kwargs):
  4948.         '''IsStrictlyBetween(self, DateTime t1, DateTime t2) -> bool'''
  4949.         return _misc_.DateTime_IsStrictlyBetween(*args, **kwargs)
  4950.  
  4951.     
  4952.     def IsBetween(*args, **kwargs):
  4953.         '''IsBetween(self, DateTime t1, DateTime t2) -> bool'''
  4954.         return _misc_.DateTime_IsBetween(*args, **kwargs)
  4955.  
  4956.     
  4957.     def IsSameDate(*args, **kwargs):
  4958.         '''IsSameDate(self, DateTime dt) -> bool'''
  4959.         return _misc_.DateTime_IsSameDate(*args, **kwargs)
  4960.  
  4961.     
  4962.     def IsSameTime(*args, **kwargs):
  4963.         '''IsSameTime(self, DateTime dt) -> bool'''
  4964.         return _misc_.DateTime_IsSameTime(*args, **kwargs)
  4965.  
  4966.     
  4967.     def IsEqualUpTo(*args, **kwargs):
  4968.         '''IsEqualUpTo(self, DateTime dt, TimeSpan ts) -> bool'''
  4969.         return _misc_.DateTime_IsEqualUpTo(*args, **kwargs)
  4970.  
  4971.     
  4972.     def AddTS(*args, **kwargs):
  4973.         '''AddTS(self, TimeSpan diff) -> DateTime'''
  4974.         return _misc_.DateTime_AddTS(*args, **kwargs)
  4975.  
  4976.     
  4977.     def AddDS(*args, **kwargs):
  4978.         '''AddDS(self, DateSpan diff) -> DateTime'''
  4979.         return _misc_.DateTime_AddDS(*args, **kwargs)
  4980.  
  4981.     
  4982.     def SubtractTS(*args, **kwargs):
  4983.         '''SubtractTS(self, TimeSpan diff) -> DateTime'''
  4984.         return _misc_.DateTime_SubtractTS(*args, **kwargs)
  4985.  
  4986.     
  4987.     def SubtractDS(*args, **kwargs):
  4988.         '''SubtractDS(self, DateSpan diff) -> DateTime'''
  4989.         return _misc_.DateTime_SubtractDS(*args, **kwargs)
  4990.  
  4991.     
  4992.     def Subtract(*args, **kwargs):
  4993.         '''Subtract(self, DateTime dt) -> TimeSpan'''
  4994.         return _misc_.DateTime_Subtract(*args, **kwargs)
  4995.  
  4996.     
  4997.     def __iadd__(*args):
  4998.         '''
  4999.         __iadd__(self, TimeSpan diff) -> DateTime
  5000.         __iadd__(self, DateSpan diff) -> DateTime
  5001.         '''
  5002.         return _misc_.DateTime___iadd__(*args)
  5003.  
  5004.     
  5005.     def __isub__(*args):
  5006.         '''
  5007.         __isub__(self, TimeSpan diff) -> DateTime
  5008.         __isub__(self, DateSpan diff) -> DateTime
  5009.         '''
  5010.         return _misc_.DateTime___isub__(*args)
  5011.  
  5012.     
  5013.     def __add__(*args):
  5014.         '''
  5015.         __add__(self, TimeSpan other) -> DateTime
  5016.         __add__(self, DateSpan other) -> DateTime
  5017.         '''
  5018.         return _misc_.DateTime___add__(*args)
  5019.  
  5020.     
  5021.     def __sub__(*args):
  5022.         '''
  5023.         __sub__(self, DateTime other) -> TimeSpan
  5024.         __sub__(self, TimeSpan other) -> DateTime
  5025.         __sub__(self, DateSpan other) -> DateTime
  5026.         '''
  5027.         return _misc_.DateTime___sub__(*args)
  5028.  
  5029.     
  5030.     def __lt__(*args, **kwargs):
  5031.         '''__lt__(self, DateTime other) -> bool'''
  5032.         return _misc_.DateTime___lt__(*args, **kwargs)
  5033.  
  5034.     
  5035.     def __le__(*args, **kwargs):
  5036.         '''__le__(self, DateTime other) -> bool'''
  5037.         return _misc_.DateTime___le__(*args, **kwargs)
  5038.  
  5039.     
  5040.     def __gt__(*args, **kwargs):
  5041.         '''__gt__(self, DateTime other) -> bool'''
  5042.         return _misc_.DateTime___gt__(*args, **kwargs)
  5043.  
  5044.     
  5045.     def __ge__(*args, **kwargs):
  5046.         '''__ge__(self, DateTime other) -> bool'''
  5047.         return _misc_.DateTime___ge__(*args, **kwargs)
  5048.  
  5049.     
  5050.     def __eq__(*args, **kwargs):
  5051.         '''__eq__(self, DateTime other) -> bool'''
  5052.         return _misc_.DateTime___eq__(*args, **kwargs)
  5053.  
  5054.     
  5055.     def __ne__(*args, **kwargs):
  5056.         '''__ne__(self, DateTime other) -> bool'''
  5057.         return _misc_.DateTime___ne__(*args, **kwargs)
  5058.  
  5059.     
  5060.     def ParseRfc822Date(*args, **kwargs):
  5061.         '''ParseRfc822Date(self, String date) -> int'''
  5062.         return _misc_.DateTime_ParseRfc822Date(*args, **kwargs)
  5063.  
  5064.     
  5065.     def ParseFormat(*args, **kwargs):
  5066.         '''ParseFormat(self, String date, String format=DefaultDateTimeFormat, DateTime dateDef=DefaultDateTime) -> int'''
  5067.         return _misc_.DateTime_ParseFormat(*args, **kwargs)
  5068.  
  5069.     
  5070.     def ParseDateTime(*args, **kwargs):
  5071.         '''ParseDateTime(self, String datetime) -> int'''
  5072.         return _misc_.DateTime_ParseDateTime(*args, **kwargs)
  5073.  
  5074.     
  5075.     def ParseDate(*args, **kwargs):
  5076.         '''ParseDate(self, String date) -> int'''
  5077.         return _misc_.DateTime_ParseDate(*args, **kwargs)
  5078.  
  5079.     
  5080.     def ParseTime(*args, **kwargs):
  5081.         '''ParseTime(self, String time) -> int'''
  5082.         return _misc_.DateTime_ParseTime(*args, **kwargs)
  5083.  
  5084.     
  5085.     def Format(*args, **kwargs):
  5086.         '''Format(self, String format=DefaultDateTimeFormat, wxDateTime::TimeZone tz=LOCAL_TZ) -> String'''
  5087.         return _misc_.DateTime_Format(*args, **kwargs)
  5088.  
  5089.     
  5090.     def FormatDate(*args, **kwargs):
  5091.         '''FormatDate(self) -> String'''
  5092.         return _misc_.DateTime_FormatDate(*args, **kwargs)
  5093.  
  5094.     
  5095.     def FormatTime(*args, **kwargs):
  5096.         '''FormatTime(self) -> String'''
  5097.         return _misc_.DateTime_FormatTime(*args, **kwargs)
  5098.  
  5099.     
  5100.     def FormatISODate(*args, **kwargs):
  5101.         '''FormatISODate(self) -> String'''
  5102.         return _misc_.DateTime_FormatISODate(*args, **kwargs)
  5103.  
  5104.     
  5105.     def FormatISOTime(*args, **kwargs):
  5106.         '''FormatISOTime(self) -> String'''
  5107.         return _misc_.DateTime_FormatISOTime(*args, **kwargs)
  5108.  
  5109.     
  5110.     def __repr__(self):
  5111.         if self.IsValid():
  5112.             f = self.Format().encode(wx.GetDefaultPyEncoding())
  5113.             return '<wx.DateTime: "%s" at %s>' % (f, self.this)
  5114.         else:
  5115.             return '<wx.DateTime: "INVALID" at %s>' % self.this
  5116.  
  5117.     
  5118.     def __str__(self):
  5119.         if self.IsValid():
  5120.             return self.Format().encode(wx.GetDefaultPyEncoding())
  5121.         else:
  5122.             return 'INVALID DateTime'
  5123.  
  5124.  
  5125.  
  5126. class DateTimePtr(DateTime):
  5127.     
  5128.     def __init__(self, this):
  5129.         self.this = this
  5130.         if not hasattr(self, 'thisown'):
  5131.             self.thisown = 0
  5132.         
  5133.         self.__class__ = DateTime
  5134.  
  5135.  
  5136. _misc_.DateTime_swigregister(DateTimePtr)
  5137. DefaultDateTimeFormat = cvar.DefaultDateTimeFormat
  5138. DefaultTimeSpanFormat = cvar.DefaultTimeSpanFormat
  5139.  
  5140. def DateTime_SetCountry(*args, **kwargs):
  5141.     '''DateTime_SetCountry(int country)'''
  5142.     return _misc_.DateTime_SetCountry(*args, **kwargs)
  5143.  
  5144.  
  5145. def DateTime_GetCountry(*args, **kwargs):
  5146.     '''DateTime_GetCountry() -> int'''
  5147.     return _misc_.DateTime_GetCountry(*args, **kwargs)
  5148.  
  5149.  
  5150. def DateTime_IsWestEuropeanCountry(*args, **kwargs):
  5151.     '''DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool'''
  5152.     return _misc_.DateTime_IsWestEuropeanCountry(*args, **kwargs)
  5153.  
  5154.  
  5155. def DateTime_GetCurrentYear(*args, **kwargs):
  5156.     '''DateTime_GetCurrentYear(int cal=Gregorian) -> int'''
  5157.     return _misc_.DateTime_GetCurrentYear(*args, **kwargs)
  5158.  
  5159.  
  5160. def DateTime_ConvertYearToBC(*args, **kwargs):
  5161.     '''DateTime_ConvertYearToBC(int year) -> int'''
  5162.     return _misc_.DateTime_ConvertYearToBC(*args, **kwargs)
  5163.  
  5164.  
  5165. def DateTime_GetCurrentMonth(*args, **kwargs):
  5166.     '''DateTime_GetCurrentMonth(int cal=Gregorian) -> int'''
  5167.     return _misc_.DateTime_GetCurrentMonth(*args, **kwargs)
  5168.  
  5169.  
  5170. def DateTime_IsLeapYear(*args, **kwargs):
  5171.     '''DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool'''
  5172.     return _misc_.DateTime_IsLeapYear(*args, **kwargs)
  5173.  
  5174.  
  5175. def DateTime_GetCentury(*args, **kwargs):
  5176.     '''DateTime_GetCentury(int year=Inv_Year) -> int'''
  5177.     return _misc_.DateTime_GetCentury(*args, **kwargs)
  5178.  
  5179.  
  5180. def DateTime_GetNumberOfDaysinYear(*args, **kwargs):
  5181.     '''DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int'''
  5182.     return _misc_.DateTime_GetNumberOfDaysinYear(*args, **kwargs)
  5183.  
  5184.  
  5185. def DateTime_GetNumberOfDaysInMonth(*args, **kwargs):
  5186.     '''DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int'''
  5187.     return _misc_.DateTime_GetNumberOfDaysInMonth(*args, **kwargs)
  5188.  
  5189.  
  5190. def DateTime_GetMonthName(*args, **kwargs):
  5191.     '''DateTime_GetMonthName(int month, int flags=Name_Full) -> String'''
  5192.     return _misc_.DateTime_GetMonthName(*args, **kwargs)
  5193.  
  5194.  
  5195. def DateTime_GetWeekDayName(*args, **kwargs):
  5196.     '''DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String'''
  5197.     return _misc_.DateTime_GetWeekDayName(*args, **kwargs)
  5198.  
  5199.  
  5200. def DateTime_GetAmPmStrings(*args, **kwargs):
  5201.     '''
  5202.     GetAmPmStrings() -> (am, pm)
  5203.  
  5204.     Get the AM and PM strings in the current locale (may be empty)
  5205.     '''
  5206.     return _misc_.DateTime_GetAmPmStrings(*args, **kwargs)
  5207.  
  5208.  
  5209. def DateTime_IsDSTApplicable(*args, **kwargs):
  5210.     '''DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool'''
  5211.     return _misc_.DateTime_IsDSTApplicable(*args, **kwargs)
  5212.  
  5213.  
  5214. def DateTime_GetBeginDST(*args, **kwargs):
  5215.     '''DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime'''
  5216.     return _misc_.DateTime_GetBeginDST(*args, **kwargs)
  5217.  
  5218.  
  5219. def DateTime_GetEndDST(*args, **kwargs):
  5220.     '''DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime'''
  5221.     return _misc_.DateTime_GetEndDST(*args, **kwargs)
  5222.  
  5223.  
  5224. def DateTime_Now(*args, **kwargs):
  5225.     '''DateTime_Now() -> DateTime'''
  5226.     return _misc_.DateTime_Now(*args, **kwargs)
  5227.  
  5228.  
  5229. def DateTime_UNow(*args, **kwargs):
  5230.     '''DateTime_UNow() -> DateTime'''
  5231.     return _misc_.DateTime_UNow(*args, **kwargs)
  5232.  
  5233.  
  5234. def DateTime_Today(*args, **kwargs):
  5235.     '''DateTime_Today() -> DateTime'''
  5236.     return _misc_.DateTime_Today(*args, **kwargs)
  5237.  
  5238.  
  5239. def DateTimeFromTimeT(*args, **kwargs):
  5240.     '''DateTimeFromTimeT(time_t timet) -> DateTime'''
  5241.     val = _misc_.new_DateTimeFromTimeT(*args, **kwargs)
  5242.     val.thisown = 1
  5243.     return val
  5244.  
  5245.  
  5246. def DateTimeFromJDN(*args, **kwargs):
  5247.     '''DateTimeFromJDN(double jdn) -> DateTime'''
  5248.     val = _misc_.new_DateTimeFromJDN(*args, **kwargs)
  5249.     val.thisown = 1
  5250.     return val
  5251.  
  5252.  
  5253. def DateTimeFromHMS(*args, **kwargs):
  5254.     '''DateTimeFromHMS(int hour, int minute=0, int second=0, int millisec=0) -> DateTime'''
  5255.     val = _misc_.new_DateTimeFromHMS(*args, **kwargs)
  5256.     val.thisown = 1
  5257.     return val
  5258.  
  5259.  
  5260. def DateTimeFromDMY(*args, **kwargs):
  5261.     '''
  5262.     DateTimeFromDMY(int day, int month=Inv_Month, int year=Inv_Year, int hour=0, 
  5263.         int minute=0, int second=0, int millisec=0) -> DateTime
  5264.     '''
  5265.     val = _misc_.new_DateTimeFromDMY(*args, **kwargs)
  5266.     val.thisown = 1
  5267.     return val
  5268.  
  5269.  
  5270. def DateTimeFromDateTime(*args, **kwargs):
  5271.     '''DateTimeFromDateTime(DateTime date) -> DateTime'''
  5272.     val = _misc_.new_DateTimeFromDateTime(*args, **kwargs)
  5273.     val.thisown = 1
  5274.     return val
  5275.  
  5276.  
  5277. def DateTime_SetToWeekOfYear(*args, **kwargs):
  5278.     '''DateTime_SetToWeekOfYear(int year, int numWeek, int weekday=Mon) -> DateTime'''
  5279.     return _misc_.DateTime_SetToWeekOfYear(*args, **kwargs)
  5280.  
  5281.  
  5282. class TimeSpan(object):
  5283.     '''Proxy of C++ TimeSpan class'''
  5284.     
  5285.     def __repr__(self):
  5286.         return '<%s.%s; proxy of C++ wxTimeSpan instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5287.  
  5288.     
  5289.     def Seconds(*args, **kwargs):
  5290.         '''Seconds(long sec) -> TimeSpan'''
  5291.         return _misc_.TimeSpan_Seconds(*args, **kwargs)
  5292.  
  5293.     Seconds = staticmethod(Seconds)
  5294.     
  5295.     def Second(*args, **kwargs):
  5296.         '''Second() -> TimeSpan'''
  5297.         return _misc_.TimeSpan_Second(*args, **kwargs)
  5298.  
  5299.     Second = staticmethod(Second)
  5300.     
  5301.     def Minutes(*args, **kwargs):
  5302.         '''Minutes(long min) -> TimeSpan'''
  5303.         return _misc_.TimeSpan_Minutes(*args, **kwargs)
  5304.  
  5305.     Minutes = staticmethod(Minutes)
  5306.     
  5307.     def Minute(*args, **kwargs):
  5308.         '''Minute() -> TimeSpan'''
  5309.         return _misc_.TimeSpan_Minute(*args, **kwargs)
  5310.  
  5311.     Minute = staticmethod(Minute)
  5312.     
  5313.     def Hours(*args, **kwargs):
  5314.         '''Hours(long hours) -> TimeSpan'''
  5315.         return _misc_.TimeSpan_Hours(*args, **kwargs)
  5316.  
  5317.     Hours = staticmethod(Hours)
  5318.     
  5319.     def Hour(*args, **kwargs):
  5320.         '''Hour() -> TimeSpan'''
  5321.         return _misc_.TimeSpan_Hour(*args, **kwargs)
  5322.  
  5323.     Hour = staticmethod(Hour)
  5324.     
  5325.     def Days(*args, **kwargs):
  5326.         '''Days(long days) -> TimeSpan'''
  5327.         return _misc_.TimeSpan_Days(*args, **kwargs)
  5328.  
  5329.     Days = staticmethod(Days)
  5330.     
  5331.     def Day(*args, **kwargs):
  5332.         '''Day() -> TimeSpan'''
  5333.         return _misc_.TimeSpan_Day(*args, **kwargs)
  5334.  
  5335.     Day = staticmethod(Day)
  5336.     
  5337.     def Weeks(*args, **kwargs):
  5338.         '''Weeks(long days) -> TimeSpan'''
  5339.         return _misc_.TimeSpan_Weeks(*args, **kwargs)
  5340.  
  5341.     Weeks = staticmethod(Weeks)
  5342.     
  5343.     def Week(*args, **kwargs):
  5344.         '''Week() -> TimeSpan'''
  5345.         return _misc_.TimeSpan_Week(*args, **kwargs)
  5346.  
  5347.     Week = staticmethod(Week)
  5348.     
  5349.     def __init__(self, *args, **kwargs):
  5350.         '''__init__(self, long hours=0, long minutes=0, long seconds=0, long milliseconds=0) -> TimeSpan'''
  5351.         newobj = _misc_.new_TimeSpan(*args, **kwargs)
  5352.         self.this = newobj.this
  5353.         self.thisown = 1
  5354.         del newobj.thisown
  5355.  
  5356.     
  5357.     def __del__(self, destroy = _misc_.delete_TimeSpan):
  5358.         '''__del__(self)'''
  5359.         
  5360.         try:
  5361.             if self.thisown:
  5362.                 destroy(self)
  5363.         except:
  5364.             pass
  5365.  
  5366.  
  5367.     
  5368.     def Add(*args, **kwargs):
  5369.         '''Add(self, TimeSpan diff) -> TimeSpan'''
  5370.         return _misc_.TimeSpan_Add(*args, **kwargs)
  5371.  
  5372.     
  5373.     def Subtract(*args, **kwargs):
  5374.         '''Subtract(self, TimeSpan diff) -> TimeSpan'''
  5375.         return _misc_.TimeSpan_Subtract(*args, **kwargs)
  5376.  
  5377.     
  5378.     def Multiply(*args, **kwargs):
  5379.         '''Multiply(self, int n) -> TimeSpan'''
  5380.         return _misc_.TimeSpan_Multiply(*args, **kwargs)
  5381.  
  5382.     
  5383.     def Neg(*args, **kwargs):
  5384.         '''Neg(self) -> TimeSpan'''
  5385.         return _misc_.TimeSpan_Neg(*args, **kwargs)
  5386.  
  5387.     
  5388.     def Abs(*args, **kwargs):
  5389.         '''Abs(self) -> TimeSpan'''
  5390.         return _misc_.TimeSpan_Abs(*args, **kwargs)
  5391.  
  5392.     
  5393.     def __iadd__(*args, **kwargs):
  5394.         '''__iadd__(self, TimeSpan diff) -> TimeSpan'''
  5395.         return _misc_.TimeSpan___iadd__(*args, **kwargs)
  5396.  
  5397.     
  5398.     def __isub__(*args, **kwargs):
  5399.         '''__isub__(self, TimeSpan diff) -> TimeSpan'''
  5400.         return _misc_.TimeSpan___isub__(*args, **kwargs)
  5401.  
  5402.     
  5403.     def __imul__(*args, **kwargs):
  5404.         '''__imul__(self, int n) -> TimeSpan'''
  5405.         return _misc_.TimeSpan___imul__(*args, **kwargs)
  5406.  
  5407.     
  5408.     def __neg__(*args, **kwargs):
  5409.         '''__neg__(self) -> TimeSpan'''
  5410.         return _misc_.TimeSpan___neg__(*args, **kwargs)
  5411.  
  5412.     
  5413.     def __add__(*args, **kwargs):
  5414.         '''__add__(self, TimeSpan other) -> TimeSpan'''
  5415.         return _misc_.TimeSpan___add__(*args, **kwargs)
  5416.  
  5417.     
  5418.     def __sub__(*args, **kwargs):
  5419.         '''__sub__(self, TimeSpan other) -> TimeSpan'''
  5420.         return _misc_.TimeSpan___sub__(*args, **kwargs)
  5421.  
  5422.     
  5423.     def __mul__(*args, **kwargs):
  5424.         '''__mul__(self, int n) -> TimeSpan'''
  5425.         return _misc_.TimeSpan___mul__(*args, **kwargs)
  5426.  
  5427.     
  5428.     def __rmul__(*args, **kwargs):
  5429.         '''__rmul__(self, int n) -> TimeSpan'''
  5430.         return _misc_.TimeSpan___rmul__(*args, **kwargs)
  5431.  
  5432.     
  5433.     def __lt__(*args, **kwargs):
  5434.         '''__lt__(self, TimeSpan other) -> bool'''
  5435.         return _misc_.TimeSpan___lt__(*args, **kwargs)
  5436.  
  5437.     
  5438.     def __le__(*args, **kwargs):
  5439.         '''__le__(self, TimeSpan other) -> bool'''
  5440.         return _misc_.TimeSpan___le__(*args, **kwargs)
  5441.  
  5442.     
  5443.     def __gt__(*args, **kwargs):
  5444.         '''__gt__(self, TimeSpan other) -> bool'''
  5445.         return _misc_.TimeSpan___gt__(*args, **kwargs)
  5446.  
  5447.     
  5448.     def __ge__(*args, **kwargs):
  5449.         '''__ge__(self, TimeSpan other) -> bool'''
  5450.         return _misc_.TimeSpan___ge__(*args, **kwargs)
  5451.  
  5452.     
  5453.     def __eq__(*args, **kwargs):
  5454.         '''__eq__(self, TimeSpan other) -> bool'''
  5455.         return _misc_.TimeSpan___eq__(*args, **kwargs)
  5456.  
  5457.     
  5458.     def __ne__(*args, **kwargs):
  5459.         '''__ne__(self, TimeSpan other) -> bool'''
  5460.         return _misc_.TimeSpan___ne__(*args, **kwargs)
  5461.  
  5462.     
  5463.     def IsNull(*args, **kwargs):
  5464.         '''IsNull(self) -> bool'''
  5465.         return _misc_.TimeSpan_IsNull(*args, **kwargs)
  5466.  
  5467.     
  5468.     def IsPositive(*args, **kwargs):
  5469.         '''IsPositive(self) -> bool'''
  5470.         return _misc_.TimeSpan_IsPositive(*args, **kwargs)
  5471.  
  5472.     
  5473.     def IsNegative(*args, **kwargs):
  5474.         '''IsNegative(self) -> bool'''
  5475.         return _misc_.TimeSpan_IsNegative(*args, **kwargs)
  5476.  
  5477.     
  5478.     def IsEqualTo(*args, **kwargs):
  5479.         '''IsEqualTo(self, TimeSpan ts) -> bool'''
  5480.         return _misc_.TimeSpan_IsEqualTo(*args, **kwargs)
  5481.  
  5482.     
  5483.     def IsLongerThan(*args, **kwargs):
  5484.         '''IsLongerThan(self, TimeSpan ts) -> bool'''
  5485.         return _misc_.TimeSpan_IsLongerThan(*args, **kwargs)
  5486.  
  5487.     
  5488.     def IsShorterThan(*args, **kwargs):
  5489.         '''IsShorterThan(self, TimeSpan t) -> bool'''
  5490.         return _misc_.TimeSpan_IsShorterThan(*args, **kwargs)
  5491.  
  5492.     
  5493.     def GetWeeks(*args, **kwargs):
  5494.         '''GetWeeks(self) -> int'''
  5495.         return _misc_.TimeSpan_GetWeeks(*args, **kwargs)
  5496.  
  5497.     
  5498.     def GetDays(*args, **kwargs):
  5499.         '''GetDays(self) -> int'''
  5500.         return _misc_.TimeSpan_GetDays(*args, **kwargs)
  5501.  
  5502.     
  5503.     def GetHours(*args, **kwargs):
  5504.         '''GetHours(self) -> int'''
  5505.         return _misc_.TimeSpan_GetHours(*args, **kwargs)
  5506.  
  5507.     
  5508.     def GetMinutes(*args, **kwargs):
  5509.         '''GetMinutes(self) -> int'''
  5510.         return _misc_.TimeSpan_GetMinutes(*args, **kwargs)
  5511.  
  5512.     
  5513.     def GetSeconds(*args, **kwargs):
  5514.         '''GetSeconds(self) -> wxLongLong'''
  5515.         return _misc_.TimeSpan_GetSeconds(*args, **kwargs)
  5516.  
  5517.     
  5518.     def GetMilliseconds(*args, **kwargs):
  5519.         '''GetMilliseconds(self) -> wxLongLong'''
  5520.         return _misc_.TimeSpan_GetMilliseconds(*args, **kwargs)
  5521.  
  5522.     
  5523.     def Format(*args, **kwargs):
  5524.         '''Format(self, String format=DefaultTimeSpanFormat) -> String'''
  5525.         return _misc_.TimeSpan_Format(*args, **kwargs)
  5526.  
  5527.     
  5528.     def __repr__(self):
  5529.         f = self.Format().encode(wx.GetDefaultPyEncoding())
  5530.         return '<wx.TimeSpan: "%s" at %s>' % (f, self.this)
  5531.  
  5532.     
  5533.     def __str__(self):
  5534.         return self.Format().encode(wx.GetDefaultPyEncoding())
  5535.  
  5536.  
  5537.  
  5538. class TimeSpanPtr(TimeSpan):
  5539.     
  5540.     def __init__(self, this):
  5541.         self.this = this
  5542.         if not hasattr(self, 'thisown'):
  5543.             self.thisown = 0
  5544.         
  5545.         self.__class__ = TimeSpan
  5546.  
  5547.  
  5548. _misc_.TimeSpan_swigregister(TimeSpanPtr)
  5549.  
  5550. def TimeSpan_Seconds(*args, **kwargs):
  5551.     '''TimeSpan_Seconds(long sec) -> TimeSpan'''
  5552.     return _misc_.TimeSpan_Seconds(*args, **kwargs)
  5553.  
  5554.  
  5555. def TimeSpan_Second(*args, **kwargs):
  5556.     '''TimeSpan_Second() -> TimeSpan'''
  5557.     return _misc_.TimeSpan_Second(*args, **kwargs)
  5558.  
  5559.  
  5560. def TimeSpan_Minutes(*args, **kwargs):
  5561.     '''TimeSpan_Minutes(long min) -> TimeSpan'''
  5562.     return _misc_.TimeSpan_Minutes(*args, **kwargs)
  5563.  
  5564.  
  5565. def TimeSpan_Minute(*args, **kwargs):
  5566.     '''TimeSpan_Minute() -> TimeSpan'''
  5567.     return _misc_.TimeSpan_Minute(*args, **kwargs)
  5568.  
  5569.  
  5570. def TimeSpan_Hours(*args, **kwargs):
  5571.     '''TimeSpan_Hours(long hours) -> TimeSpan'''
  5572.     return _misc_.TimeSpan_Hours(*args, **kwargs)
  5573.  
  5574.  
  5575. def TimeSpan_Hour(*args, **kwargs):
  5576.     '''TimeSpan_Hour() -> TimeSpan'''
  5577.     return _misc_.TimeSpan_Hour(*args, **kwargs)
  5578.  
  5579.  
  5580. def TimeSpan_Days(*args, **kwargs):
  5581.     '''TimeSpan_Days(long days) -> TimeSpan'''
  5582.     return _misc_.TimeSpan_Days(*args, **kwargs)
  5583.  
  5584.  
  5585. def TimeSpan_Day(*args, **kwargs):
  5586.     '''TimeSpan_Day() -> TimeSpan'''
  5587.     return _misc_.TimeSpan_Day(*args, **kwargs)
  5588.  
  5589.  
  5590. def TimeSpan_Weeks(*args, **kwargs):
  5591.     '''TimeSpan_Weeks(long days) -> TimeSpan'''
  5592.     return _misc_.TimeSpan_Weeks(*args, **kwargs)
  5593.  
  5594.  
  5595. def TimeSpan_Week(*args, **kwargs):
  5596.     '''TimeSpan_Week() -> TimeSpan'''
  5597.     return _misc_.TimeSpan_Week(*args, **kwargs)
  5598.  
  5599.  
  5600. class DateSpan(object):
  5601.     '''Proxy of C++ DateSpan class'''
  5602.     
  5603.     def __repr__(self):
  5604.         return '<%s.%s; proxy of C++ wxDateSpan instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5605.  
  5606.     
  5607.     def __init__(self, *args, **kwargs):
  5608.         '''__init__(self, int years=0, int months=0, int weeks=0, int days=0) -> DateSpan'''
  5609.         newobj = _misc_.new_DateSpan(*args, **kwargs)
  5610.         self.this = newobj.this
  5611.         self.thisown = 1
  5612.         del newobj.thisown
  5613.  
  5614.     
  5615.     def __del__(self, destroy = _misc_.delete_DateSpan):
  5616.         '''__del__(self)'''
  5617.         
  5618.         try:
  5619.             if self.thisown:
  5620.                 destroy(self)
  5621.         except:
  5622.             pass
  5623.  
  5624.  
  5625.     
  5626.     def Days(*args, **kwargs):
  5627.         '''Days(int days) -> DateSpan'''
  5628.         return _misc_.DateSpan_Days(*args, **kwargs)
  5629.  
  5630.     Days = staticmethod(Days)
  5631.     
  5632.     def Day(*args, **kwargs):
  5633.         '''Day() -> DateSpan'''
  5634.         return _misc_.DateSpan_Day(*args, **kwargs)
  5635.  
  5636.     Day = staticmethod(Day)
  5637.     
  5638.     def Weeks(*args, **kwargs):
  5639.         '''Weeks(int weeks) -> DateSpan'''
  5640.         return _misc_.DateSpan_Weeks(*args, **kwargs)
  5641.  
  5642.     Weeks = staticmethod(Weeks)
  5643.     
  5644.     def Week(*args, **kwargs):
  5645.         '''Week() -> DateSpan'''
  5646.         return _misc_.DateSpan_Week(*args, **kwargs)
  5647.  
  5648.     Week = staticmethod(Week)
  5649.     
  5650.     def Months(*args, **kwargs):
  5651.         '''Months(int mon) -> DateSpan'''
  5652.         return _misc_.DateSpan_Months(*args, **kwargs)
  5653.  
  5654.     Months = staticmethod(Months)
  5655.     
  5656.     def Month(*args, **kwargs):
  5657.         '''Month() -> DateSpan'''
  5658.         return _misc_.DateSpan_Month(*args, **kwargs)
  5659.  
  5660.     Month = staticmethod(Month)
  5661.     
  5662.     def Years(*args, **kwargs):
  5663.         '''Years(int years) -> DateSpan'''
  5664.         return _misc_.DateSpan_Years(*args, **kwargs)
  5665.  
  5666.     Years = staticmethod(Years)
  5667.     
  5668.     def Year(*args, **kwargs):
  5669.         '''Year() -> DateSpan'''
  5670.         return _misc_.DateSpan_Year(*args, **kwargs)
  5671.  
  5672.     Year = staticmethod(Year)
  5673.     
  5674.     def SetYears(*args, **kwargs):
  5675.         '''SetYears(self, int n) -> DateSpan'''
  5676.         return _misc_.DateSpan_SetYears(*args, **kwargs)
  5677.  
  5678.     
  5679.     def SetMonths(*args, **kwargs):
  5680.         '''SetMonths(self, int n) -> DateSpan'''
  5681.         return _misc_.DateSpan_SetMonths(*args, **kwargs)
  5682.  
  5683.     
  5684.     def SetWeeks(*args, **kwargs):
  5685.         '''SetWeeks(self, int n) -> DateSpan'''
  5686.         return _misc_.DateSpan_SetWeeks(*args, **kwargs)
  5687.  
  5688.     
  5689.     def SetDays(*args, **kwargs):
  5690.         '''SetDays(self, int n) -> DateSpan'''
  5691.         return _misc_.DateSpan_SetDays(*args, **kwargs)
  5692.  
  5693.     
  5694.     def GetYears(*args, **kwargs):
  5695.         '''GetYears(self) -> int'''
  5696.         return _misc_.DateSpan_GetYears(*args, **kwargs)
  5697.  
  5698.     
  5699.     def GetMonths(*args, **kwargs):
  5700.         '''GetMonths(self) -> int'''
  5701.         return _misc_.DateSpan_GetMonths(*args, **kwargs)
  5702.  
  5703.     
  5704.     def GetWeeks(*args, **kwargs):
  5705.         '''GetWeeks(self) -> int'''
  5706.         return _misc_.DateSpan_GetWeeks(*args, **kwargs)
  5707.  
  5708.     
  5709.     def GetDays(*args, **kwargs):
  5710.         '''GetDays(self) -> int'''
  5711.         return _misc_.DateSpan_GetDays(*args, **kwargs)
  5712.  
  5713.     
  5714.     def GetTotalDays(*args, **kwargs):
  5715.         '''GetTotalDays(self) -> int'''
  5716.         return _misc_.DateSpan_GetTotalDays(*args, **kwargs)
  5717.  
  5718.     
  5719.     def Add(*args, **kwargs):
  5720.         '''Add(self, DateSpan other) -> DateSpan'''
  5721.         return _misc_.DateSpan_Add(*args, **kwargs)
  5722.  
  5723.     
  5724.     def Subtract(*args, **kwargs):
  5725.         '''Subtract(self, DateSpan other) -> DateSpan'''
  5726.         return _misc_.DateSpan_Subtract(*args, **kwargs)
  5727.  
  5728.     
  5729.     def Neg(*args, **kwargs):
  5730.         '''Neg(self) -> DateSpan'''
  5731.         return _misc_.DateSpan_Neg(*args, **kwargs)
  5732.  
  5733.     
  5734.     def Multiply(*args, **kwargs):
  5735.         '''Multiply(self, int factor) -> DateSpan'''
  5736.         return _misc_.DateSpan_Multiply(*args, **kwargs)
  5737.  
  5738.     
  5739.     def __iadd__(*args, **kwargs):
  5740.         '''__iadd__(self, DateSpan other) -> DateSpan'''
  5741.         return _misc_.DateSpan___iadd__(*args, **kwargs)
  5742.  
  5743.     
  5744.     def __isub__(*args, **kwargs):
  5745.         '''__isub__(self, DateSpan other) -> DateSpan'''
  5746.         return _misc_.DateSpan___isub__(*args, **kwargs)
  5747.  
  5748.     
  5749.     def __neg__(*args, **kwargs):
  5750.         '''__neg__(self) -> DateSpan'''
  5751.         return _misc_.DateSpan___neg__(*args, **kwargs)
  5752.  
  5753.     
  5754.     def __imul__(*args, **kwargs):
  5755.         '''__imul__(self, int factor) -> DateSpan'''
  5756.         return _misc_.DateSpan___imul__(*args, **kwargs)
  5757.  
  5758.     
  5759.     def __add__(*args, **kwargs):
  5760.         '''__add__(self, DateSpan other) -> DateSpan'''
  5761.         return _misc_.DateSpan___add__(*args, **kwargs)
  5762.  
  5763.     
  5764.     def __sub__(*args, **kwargs):
  5765.         '''__sub__(self, DateSpan other) -> DateSpan'''
  5766.         return _misc_.DateSpan___sub__(*args, **kwargs)
  5767.  
  5768.     
  5769.     def __mul__(*args, **kwargs):
  5770.         '''__mul__(self, int n) -> DateSpan'''
  5771.         return _misc_.DateSpan___mul__(*args, **kwargs)
  5772.  
  5773.     
  5774.     def __rmul__(*args, **kwargs):
  5775.         '''__rmul__(self, int n) -> DateSpan'''
  5776.         return _misc_.DateSpan___rmul__(*args, **kwargs)
  5777.  
  5778.     
  5779.     def __eq__(*args, **kwargs):
  5780.         '''__eq__(self, DateSpan other) -> bool'''
  5781.         return _misc_.DateSpan___eq__(*args, **kwargs)
  5782.  
  5783.     
  5784.     def __ne__(*args, **kwargs):
  5785.         '''__ne__(self, DateSpan other) -> bool'''
  5786.         return _misc_.DateSpan___ne__(*args, **kwargs)
  5787.  
  5788.  
  5789.  
  5790. class DateSpanPtr(DateSpan):
  5791.     
  5792.     def __init__(self, this):
  5793.         self.this = this
  5794.         if not hasattr(self, 'thisown'):
  5795.             self.thisown = 0
  5796.         
  5797.         self.__class__ = DateSpan
  5798.  
  5799.  
  5800. _misc_.DateSpan_swigregister(DateSpanPtr)
  5801.  
  5802. def DateSpan_Days(*args, **kwargs):
  5803.     '''DateSpan_Days(int days) -> DateSpan'''
  5804.     return _misc_.DateSpan_Days(*args, **kwargs)
  5805.  
  5806.  
  5807. def DateSpan_Day(*args, **kwargs):
  5808.     '''DateSpan_Day() -> DateSpan'''
  5809.     return _misc_.DateSpan_Day(*args, **kwargs)
  5810.  
  5811.  
  5812. def DateSpan_Weeks(*args, **kwargs):
  5813.     '''DateSpan_Weeks(int weeks) -> DateSpan'''
  5814.     return _misc_.DateSpan_Weeks(*args, **kwargs)
  5815.  
  5816.  
  5817. def DateSpan_Week(*args, **kwargs):
  5818.     '''DateSpan_Week() -> DateSpan'''
  5819.     return _misc_.DateSpan_Week(*args, **kwargs)
  5820.  
  5821.  
  5822. def DateSpan_Months(*args, **kwargs):
  5823.     '''DateSpan_Months(int mon) -> DateSpan'''
  5824.     return _misc_.DateSpan_Months(*args, **kwargs)
  5825.  
  5826.  
  5827. def DateSpan_Month(*args, **kwargs):
  5828.     '''DateSpan_Month() -> DateSpan'''
  5829.     return _misc_.DateSpan_Month(*args, **kwargs)
  5830.  
  5831.  
  5832. def DateSpan_Years(*args, **kwargs):
  5833.     '''DateSpan_Years(int years) -> DateSpan'''
  5834.     return _misc_.DateSpan_Years(*args, **kwargs)
  5835.  
  5836.  
  5837. def DateSpan_Year(*args, **kwargs):
  5838.     '''DateSpan_Year() -> DateSpan'''
  5839.     return _misc_.DateSpan_Year(*args, **kwargs)
  5840.  
  5841.  
  5842. def GetLocalTime(*args, **kwargs):
  5843.     '''GetLocalTime() -> long'''
  5844.     return _misc_.GetLocalTime(*args, **kwargs)
  5845.  
  5846.  
  5847. def GetUTCTime(*args, **kwargs):
  5848.     '''GetUTCTime() -> long'''
  5849.     return _misc_.GetUTCTime(*args, **kwargs)
  5850.  
  5851.  
  5852. def GetCurrentTime(*args, **kwargs):
  5853.     '''GetCurrentTime() -> long'''
  5854.     return _misc_.GetCurrentTime(*args, **kwargs)
  5855.  
  5856.  
  5857. def GetLocalTimeMillis(*args, **kwargs):
  5858.     '''GetLocalTimeMillis() -> wxLongLong'''
  5859.     return _misc_.GetLocalTimeMillis(*args, **kwargs)
  5860.  
  5861. DF_INVALID = _misc_.DF_INVALID
  5862. DF_TEXT = _misc_.DF_TEXT
  5863. DF_BITMAP = _misc_.DF_BITMAP
  5864. DF_METAFILE = _misc_.DF_METAFILE
  5865. DF_SYLK = _misc_.DF_SYLK
  5866. DF_DIF = _misc_.DF_DIF
  5867. DF_TIFF = _misc_.DF_TIFF
  5868. DF_OEMTEXT = _misc_.DF_OEMTEXT
  5869. DF_DIB = _misc_.DF_DIB
  5870. DF_PALETTE = _misc_.DF_PALETTE
  5871. DF_PENDATA = _misc_.DF_PENDATA
  5872. DF_RIFF = _misc_.DF_RIFF
  5873. DF_WAVE = _misc_.DF_WAVE
  5874. DF_UNICODETEXT = _misc_.DF_UNICODETEXT
  5875. DF_ENHMETAFILE = _misc_.DF_ENHMETAFILE
  5876. DF_FILENAME = _misc_.DF_FILENAME
  5877. DF_LOCALE = _misc_.DF_LOCALE
  5878. DF_PRIVATE = _misc_.DF_PRIVATE
  5879. DF_HTML = _misc_.DF_HTML
  5880. DF_MAX = _misc_.DF_MAX
  5881.  
  5882. class DataFormat(object):
  5883.     '''
  5884.     A wx.DataFormat is an encapsulation of a platform-specific format
  5885.     handle which is used by the system for the clipboard and drag and drop
  5886.     operations. The applications are usually only interested in, for
  5887.     example, pasting data from the clipboard only if the data is in a
  5888.     format the program understands.  A data format is is used to uniquely
  5889.     identify this format.
  5890.     '''
  5891.     
  5892.     def __repr__(self):
  5893.         return '<%s.%s; proxy of C++ wxDataFormat instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  5894.  
  5895.     
  5896.     def __init__(self, *args, **kwargs):
  5897.         '''
  5898.         __init__(self, int type) -> DataFormat
  5899.  
  5900.         Constructs a data format object for one of the standard data formats
  5901.         or an empty data object (use SetType or SetId later in this case)
  5902.         '''
  5903.         newobj = _misc_.new_DataFormat(*args, **kwargs)
  5904.         self.this = newobj.this
  5905.         self.thisown = 1
  5906.         del newobj.thisown
  5907.  
  5908.     
  5909.     def __del__(self, destroy = _misc_.delete_DataFormat):
  5910.         '''__del__(self)'''
  5911.         
  5912.         try:
  5913.             if self.thisown:
  5914.                 destroy(self)
  5915.         except:
  5916.             pass
  5917.  
  5918.  
  5919.     
  5920.     def __eq__(*args):
  5921.         '''
  5922.         __eq__(self, int format) -> bool
  5923.         __eq__(self, DataFormat format) -> bool
  5924.         '''
  5925.         return _misc_.DataFormat___eq__(*args)
  5926.  
  5927.     
  5928.     def __ne__(*args):
  5929.         '''
  5930.         __ne__(self, int format) -> bool
  5931.         __ne__(self, DataFormat format) -> bool
  5932.         '''
  5933.         return _misc_.DataFormat___ne__(*args)
  5934.  
  5935.     
  5936.     def SetType(*args, **kwargs):
  5937.         '''
  5938.         SetType(self, int format)
  5939.  
  5940.         Sets the format to the given value, which should be one of wx.DF_XXX
  5941.         constants.
  5942.         '''
  5943.         return _misc_.DataFormat_SetType(*args, **kwargs)
  5944.  
  5945.     
  5946.     def GetType(*args, **kwargs):
  5947.         '''
  5948.         GetType(self) -> int
  5949.  
  5950.         Returns the platform-specific number identifying the format.
  5951.         '''
  5952.         return _misc_.DataFormat_GetType(*args, **kwargs)
  5953.  
  5954.     
  5955.     def GetId(*args, **kwargs):
  5956.         '''
  5957.         GetId(self) -> String
  5958.  
  5959.         Returns the name of a custom format (this function will fail for a
  5960.         standard format).
  5961.         '''
  5962.         return _misc_.DataFormat_GetId(*args, **kwargs)
  5963.  
  5964.     
  5965.     def SetId(*args, **kwargs):
  5966.         '''
  5967.         SetId(self, String format)
  5968.  
  5969.         Sets the format to be the custom format identified by the given name.
  5970.         '''
  5971.         return _misc_.DataFormat_SetId(*args, **kwargs)
  5972.  
  5973.  
  5974.  
  5975. class DataFormatPtr(DataFormat):
  5976.     
  5977.     def __init__(self, this):
  5978.         self.this = this
  5979.         if not hasattr(self, 'thisown'):
  5980.             self.thisown = 0
  5981.         
  5982.         self.__class__ = DataFormat
  5983.  
  5984.  
  5985. _misc_.DataFormat_swigregister(DataFormatPtr)
  5986. DefaultDateTime = cvar.DefaultDateTime
  5987.  
  5988. def CustomDataFormat(*args, **kwargs):
  5989.     '''
  5990.     CustomDataFormat(String format) -> DataFormat
  5991.  
  5992.     Constructs a data format object for a custom format identified by its
  5993.     name.
  5994.     '''
  5995.     val = _misc_.new_CustomDataFormat(*args, **kwargs)
  5996.     val.thisown = 1
  5997.     return val
  5998.  
  5999.  
  6000. class DataObject(object):
  6001.     """
  6002.     A wx.DataObject represents data that can be copied to or from the
  6003.     clipboard, or dragged and dropped. The important thing about
  6004.     wx.DataObject is that this is a 'smart' piece of data unlike usual
  6005.     'dumb' data containers such as memory buffers or files. Being 'smart'
  6006.     here means that the data object itself should know what data formats
  6007.     it supports and how to render itself in each of supported formats.
  6008.  
  6009.     **NOTE**: This class is an abstract base class and can not be used
  6010.     directly from Python.  If you need a custom type of data object then
  6011.     you should instead derive from `wx.PyDataObjectSimple` or use
  6012.     `wx.CustomDataObject`.
  6013.  
  6014.     """
  6015.     
  6016.     def __init__(self):
  6017.         raise RuntimeError, 'No constructor defined'
  6018.  
  6019.     
  6020.     def __repr__(self):
  6021.         return '<%s.%s; proxy of C++ wxDataObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6022.  
  6023.     Get = _misc_.DataObject_Get
  6024.     Set = _misc_.DataObject_Set
  6025.     Both = _misc_.DataObject_Both
  6026.     
  6027.     def __del__(self, destroy = _misc_.delete_DataObject):
  6028.         '''__del__(self)'''
  6029.         
  6030.         try:
  6031.             if self.thisown:
  6032.                 destroy(self)
  6033.         except:
  6034.             pass
  6035.  
  6036.  
  6037.     
  6038.     def GetPreferredFormat(*args, **kwargs):
  6039.         '''
  6040.         GetPreferredFormat(self, int dir=Get) -> DataFormat
  6041.  
  6042.         Returns the preferred format for either rendering the data (if dir is
  6043.         Get, its default value) or for setting it. Usually this will be the
  6044.         native format of the wx.DataObject.
  6045.         '''
  6046.         return _misc_.DataObject_GetPreferredFormat(*args, **kwargs)
  6047.  
  6048.     
  6049.     def GetFormatCount(*args, **kwargs):
  6050.         '''
  6051.         GetFormatCount(self, int dir=Get) -> size_t
  6052.  
  6053.         Returns the number of available formats for rendering or setting the
  6054.         data.
  6055.         '''
  6056.         return _misc_.DataObject_GetFormatCount(*args, **kwargs)
  6057.  
  6058.     
  6059.     def IsSupported(*args, **kwargs):
  6060.         '''
  6061.         IsSupported(self, DataFormat format, int dir=Get) -> bool
  6062.  
  6063.         Returns True if this format is supported.
  6064.         '''
  6065.         return _misc_.DataObject_IsSupported(*args, **kwargs)
  6066.  
  6067.     
  6068.     def GetDataSize(*args, **kwargs):
  6069.         '''
  6070.         GetDataSize(self, DataFormat format) -> size_t
  6071.  
  6072.         Get the (total) size of data for the given format
  6073.         '''
  6074.         return _misc_.DataObject_GetDataSize(*args, **kwargs)
  6075.  
  6076.     
  6077.     def GetAllFormats(*args, **kwargs):
  6078.         '''
  6079.         GetAllFormats(self, int dir=Get) -> [formats]
  6080.  
  6081.         Returns a list of all the wx.DataFormats that this dataobject supports
  6082.         in the given direction.
  6083.         '''
  6084.         return _misc_.DataObject_GetAllFormats(*args, **kwargs)
  6085.  
  6086.     
  6087.     def GetDataHere(*args, **kwargs):
  6088.         '''
  6089.         GetDataHere(self, DataFormat format) -> String
  6090.  
  6091.         Get the data bytes in the specified format, returns None on failure.
  6092.  
  6093.         '''
  6094.         return _misc_.DataObject_GetDataHere(*args, **kwargs)
  6095.  
  6096.     
  6097.     def SetData(*args, **kwargs):
  6098.         '''
  6099.         SetData(self, DataFormat format, String data) -> bool
  6100.  
  6101.         Set the data in the specified format from the bytes in the the data string.
  6102.  
  6103.         '''
  6104.         return _misc_.DataObject_SetData(*args, **kwargs)
  6105.  
  6106.  
  6107.  
  6108. class DataObjectPtr(DataObject):
  6109.     
  6110.     def __init__(self, this):
  6111.         self.this = this
  6112.         if not hasattr(self, 'thisown'):
  6113.             self.thisown = 0
  6114.         
  6115.         self.__class__ = DataObject
  6116.  
  6117.  
  6118. _misc_.DataObject_swigregister(DataObjectPtr)
  6119. FormatInvalid = cvar.FormatInvalid
  6120.  
  6121. class DataObjectSimple(DataObject):
  6122.     '''
  6123.     wx.DataObjectSimple is a `wx.DataObject` which only supports one
  6124.     format.  This is the simplest possible `wx.DataObject` implementation.
  6125.  
  6126.     This is still an "abstract base class" meaning that you can\'t use it
  6127.     directly.  You either need to use one of the predefined base classes,
  6128.     or derive your own class from `wx.PyDataObjectSimple`.
  6129.  
  6130.     '''
  6131.     
  6132.     def __repr__(self):
  6133.         return '<%s.%s; proxy of C++ wxDataObjectSimple instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6134.  
  6135.     
  6136.     def __init__(self, *args, **kwargs):
  6137.         '''
  6138.         __init__(self, DataFormat format=FormatInvalid) -> DataObjectSimple
  6139.  
  6140.         Constructor accepts the supported format (none by default) which may
  6141.         also be set later with `SetFormat`.
  6142.         '''
  6143.         newobj = _misc_.new_DataObjectSimple(*args, **kwargs)
  6144.         self.this = newobj.this
  6145.         self.thisown = 1
  6146.         del newobj.thisown
  6147.  
  6148.     
  6149.     def GetFormat(*args, **kwargs):
  6150.         '''
  6151.         GetFormat(self) -> DataFormat
  6152.  
  6153.         Returns the (one and only one) format supported by this object. It is
  6154.         assumed that the format is supported in both directions.
  6155.         '''
  6156.         return _misc_.DataObjectSimple_GetFormat(*args, **kwargs)
  6157.  
  6158.     
  6159.     def SetFormat(*args, **kwargs):
  6160.         '''
  6161.         SetFormat(self, DataFormat format)
  6162.  
  6163.         Sets the supported format.
  6164.         '''
  6165.         return _misc_.DataObjectSimple_SetFormat(*args, **kwargs)
  6166.  
  6167.     
  6168.     def GetDataSize(*args, **kwargs):
  6169.         '''
  6170.         GetDataSize(self) -> size_t
  6171.  
  6172.         Get the size of our data.
  6173.         '''
  6174.         return _misc_.DataObjectSimple_GetDataSize(*args, **kwargs)
  6175.  
  6176.     
  6177.     def GetDataHere(*args, **kwargs):
  6178.         '''
  6179.         GetDataHere(self) -> String
  6180.  
  6181.         Returns the data bytes from the data object as a string, returns None
  6182.         on failure.  Must be implemented in the derived class if the object
  6183.         supports rendering its data.
  6184.         '''
  6185.         return _misc_.DataObjectSimple_GetDataHere(*args, **kwargs)
  6186.  
  6187.     
  6188.     def SetData(*args, **kwargs):
  6189.         '''
  6190.         SetData(self, String data) -> bool
  6191.  
  6192.         Copy the data value to the data object.  Must be implemented in the
  6193.         derived class if the object supports setting its data.
  6194.  
  6195.         '''
  6196.         return _misc_.DataObjectSimple_SetData(*args, **kwargs)
  6197.  
  6198.  
  6199.  
  6200. class DataObjectSimplePtr(DataObjectSimple):
  6201.     
  6202.     def __init__(self, this):
  6203.         self.this = this
  6204.         if not hasattr(self, 'thisown'):
  6205.             self.thisown = 0
  6206.         
  6207.         self.__class__ = DataObjectSimple
  6208.  
  6209.  
  6210. _misc_.DataObjectSimple_swigregister(DataObjectSimplePtr)
  6211.  
  6212. class PyDataObjectSimple(DataObjectSimple):
  6213.     '''
  6214.     wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
  6215.     Python-aware and knows how to reflect calls to its C++ virtual methods
  6216.     to methods in the Python derived class.  You should derive from this
  6217.     class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
  6218.     need to create your own simple single-format type of `wx.DataObject`.
  6219.  
  6220.     '''
  6221.     
  6222.     def __repr__(self):
  6223.         return '<%s.%s; proxy of C++ wxPyDataObjectSimple instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6224.  
  6225.     
  6226.     def __init__(self, *args, **kwargs):
  6227.         '''
  6228.         __init__(self, DataFormat format=FormatInvalid) -> PyDataObjectSimple
  6229.  
  6230.         wx.PyDataObjectSimple is a version of `wx.DataObjectSimple` that is
  6231.         Python-aware and knows how to reflect calls to its C++ virtual methods
  6232.         to methods in the Python derived class.  You should derive from this
  6233.         class and overload `GetDataSize`, `GetDataHere` and `SetData` when you
  6234.         need to create your own simple single-format type of `wx.DataObject`.
  6235.  
  6236.         '''
  6237.         newobj = _misc_.new_PyDataObjectSimple(*args, **kwargs)
  6238.         self.this = newobj.this
  6239.         self.thisown = 1
  6240.         del newobj.thisown
  6241.         self._setCallbackInfo(self, PyDataObjectSimple)
  6242.  
  6243.     
  6244.     def _setCallbackInfo(*args, **kwargs):
  6245.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  6246.         return _misc_.PyDataObjectSimple__setCallbackInfo(*args, **kwargs)
  6247.  
  6248.  
  6249.  
  6250. class PyDataObjectSimplePtr(PyDataObjectSimple):
  6251.     
  6252.     def __init__(self, this):
  6253.         self.this = this
  6254.         if not hasattr(self, 'thisown'):
  6255.             self.thisown = 0
  6256.         
  6257.         self.__class__ = PyDataObjectSimple
  6258.  
  6259.  
  6260. _misc_.PyDataObjectSimple_swigregister(PyDataObjectSimplePtr)
  6261.  
  6262. class DataObjectComposite(DataObject):
  6263.     """
  6264.     wx.DataObjectComposite is the simplest `wx.DataObject` derivation
  6265.     which may be sued to support multiple formats. It contains several
  6266.     'wx.DataObjectSimple` objects and supports any format supported by at
  6267.     least one of them. Only one of these data objects is *preferred* (the
  6268.     first one if not explicitly changed by using the second parameter of
  6269.     `Add`) and its format determines the preferred format of the composite
  6270.     data object as well.
  6271.  
  6272.     See `wx.DataObject` documentation for the reasons why you might prefer
  6273.     to use wx.DataObject directly instead of wx.DataObjectComposite for
  6274.     efficiency reasons.
  6275.  
  6276.     """
  6277.     
  6278.     def __repr__(self):
  6279.         return '<%s.%s; proxy of C++ wxDataObjectComposite instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6280.  
  6281.     
  6282.     def __init__(self, *args, **kwargs):
  6283.         """
  6284.         __init__(self) -> DataObjectComposite
  6285.  
  6286.         wx.DataObjectComposite is the simplest `wx.DataObject` derivation
  6287.         which may be sued to support multiple formats. It contains several
  6288.         'wx.DataObjectSimple` objects and supports any format supported by at
  6289.         least one of them. Only one of these data objects is *preferred* (the
  6290.         first one if not explicitly changed by using the second parameter of
  6291.         `Add`) and its format determines the preferred format of the composite
  6292.         data object as well.
  6293.  
  6294.         See `wx.DataObject` documentation for the reasons why you might prefer
  6295.         to use wx.DataObject directly instead of wx.DataObjectComposite for
  6296.         efficiency reasons.
  6297.  
  6298.         """
  6299.         newobj = _misc_.new_DataObjectComposite(*args, **kwargs)
  6300.         self.this = newobj.this
  6301.         self.thisown = 1
  6302.         del newobj.thisown
  6303.  
  6304.     
  6305.     def Add(*args, **kwargs):
  6306.         '''
  6307.         Add(self, DataObjectSimple dataObject, bool preferred=False)
  6308.  
  6309.         Adds the dataObject to the list of supported objects and it becomes
  6310.         the preferred object if preferred is True.
  6311.         '''
  6312.         return _misc_.DataObjectComposite_Add(*args, **kwargs)
  6313.  
  6314.  
  6315.  
  6316. class DataObjectCompositePtr(DataObjectComposite):
  6317.     
  6318.     def __init__(self, this):
  6319.         self.this = this
  6320.         if not hasattr(self, 'thisown'):
  6321.             self.thisown = 0
  6322.         
  6323.         self.__class__ = DataObjectComposite
  6324.  
  6325.  
  6326. _misc_.DataObjectComposite_swigregister(DataObjectCompositePtr)
  6327.  
  6328. class TextDataObject(DataObjectSimple):
  6329.     '''
  6330.     wx.TextDataObject is a specialization of `wx.DataObject` for text
  6331.     data. It can be used without change to paste data into the `wx.Clipboard`
  6332.     or a `wx.DropSource`.
  6333.  
  6334.     Alternativly, you may wish to derive a new class from the
  6335.     `wx.PyTextDataObject` class for providing text on-demand in order to
  6336.     minimize memory consumption when offering data in several formats,
  6337.     such as plain text and RTF, because by default the text is stored in a
  6338.     string in this class, but it might as well be generated on demand when
  6339.     requested. For this, `GetTextLength` and `GetText` will have to be
  6340.     overridden.
  6341.     '''
  6342.     
  6343.     def __repr__(self):
  6344.         return '<%s.%s; proxy of C++ wxTextDataObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6345.  
  6346.     
  6347.     def __init__(self, *args, **kwargs):
  6348.         '''
  6349.         __init__(self, String text=EmptyString) -> TextDataObject
  6350.  
  6351.         Constructor, may be used to initialise the text (otherwise `SetText`
  6352.         should be used later).
  6353.         '''
  6354.         newobj = _misc_.new_TextDataObject(*args, **kwargs)
  6355.         self.this = newobj.this
  6356.         self.thisown = 1
  6357.         del newobj.thisown
  6358.  
  6359.     
  6360.     def GetTextLength(*args, **kwargs):
  6361.         '''
  6362.         GetTextLength(self) -> size_t
  6363.  
  6364.         Returns the data size.  By default, returns the size of the text data
  6365.         set in the constructor or using `SetText`.  This can be overridden (via
  6366.         `wx.PyTextDataObject`) to provide text size data on-demand. It is
  6367.         recommended to return the text length plus 1 for a trailing zero, but
  6368.         this is not strictly required.
  6369.         '''
  6370.         return _misc_.TextDataObject_GetTextLength(*args, **kwargs)
  6371.  
  6372.     
  6373.     def GetText(*args, **kwargs):
  6374.         '''
  6375.         GetText(self) -> String
  6376.  
  6377.         Returns the text associated with the data object.
  6378.         '''
  6379.         return _misc_.TextDataObject_GetText(*args, **kwargs)
  6380.  
  6381.     
  6382.     def SetText(*args, **kwargs):
  6383.         '''
  6384.         SetText(self, String text)
  6385.  
  6386.         Sets the text associated with the data object. This method is called
  6387.         when the data object receives the data and, by default, copies the
  6388.         text into the member variable. If you want to process the text on the
  6389.         fly you may wish to override this function (via
  6390.         `wx.PyTextDataObject`.)
  6391.         '''
  6392.         return _misc_.TextDataObject_SetText(*args, **kwargs)
  6393.  
  6394.  
  6395.  
  6396. class TextDataObjectPtr(TextDataObject):
  6397.     
  6398.     def __init__(self, this):
  6399.         self.this = this
  6400.         if not hasattr(self, 'thisown'):
  6401.             self.thisown = 0
  6402.         
  6403.         self.__class__ = TextDataObject
  6404.  
  6405.  
  6406. _misc_.TextDataObject_swigregister(TextDataObjectPtr)
  6407.  
  6408. class PyTextDataObject(TextDataObject):
  6409.     '''
  6410.     wx.PyTextDataObject is a version of `wx.TextDataObject` that is
  6411.     Python-aware and knows how to reflect calls to its C++ virtual methods
  6412.     to methods in the Python derived class.  You should derive from this
  6413.     class and overload `GetTextLength`, `GetText`, and `SetText` when you
  6414.     want to be able to provide text on demand instead of preloading it
  6415.     into the data object.
  6416.     '''
  6417.     
  6418.     def __repr__(self):
  6419.         return '<%s.%s; proxy of C++ wxPyTextDataObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6420.  
  6421.     
  6422.     def __init__(self, *args, **kwargs):
  6423.         '''
  6424.         __init__(self, String text=EmptyString) -> PyTextDataObject
  6425.  
  6426.         wx.PyTextDataObject is a version of `wx.TextDataObject` that is
  6427.         Python-aware and knows how to reflect calls to its C++ virtual methods
  6428.         to methods in the Python derived class.  You should derive from this
  6429.         class and overload `GetTextLength`, `GetText`, and `SetText` when you
  6430.         want to be able to provide text on demand instead of preloading it
  6431.         into the data object.
  6432.         '''
  6433.         newobj = _misc_.new_PyTextDataObject(*args, **kwargs)
  6434.         self.this = newobj.this
  6435.         self.thisown = 1
  6436.         del newobj.thisown
  6437.         self._setCallbackInfo(self, PyTextDataObject)
  6438.  
  6439.     
  6440.     def _setCallbackInfo(*args, **kwargs):
  6441.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  6442.         return _misc_.PyTextDataObject__setCallbackInfo(*args, **kwargs)
  6443.  
  6444.  
  6445.  
  6446. class PyTextDataObjectPtr(PyTextDataObject):
  6447.     
  6448.     def __init__(self, this):
  6449.         self.this = this
  6450.         if not hasattr(self, 'thisown'):
  6451.             self.thisown = 0
  6452.         
  6453.         self.__class__ = PyTextDataObject
  6454.  
  6455.  
  6456. _misc_.PyTextDataObject_swigregister(PyTextDataObjectPtr)
  6457.  
  6458. class BitmapDataObject(DataObjectSimple):
  6459.     '''
  6460.     wx.BitmapDataObject is a specialization of wxDataObject for bitmap
  6461.     data. It can be used without change to paste data into the `wx.Clipboard`
  6462.     or a `wx.DropSource`.
  6463.  
  6464.     '''
  6465.     
  6466.     def __repr__(self):
  6467.         return '<%s.%s; proxy of C++ wxBitmapDataObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6468.  
  6469.     
  6470.     def __init__(self, *args, **kwargs):
  6471.         '''
  6472.         __init__(self, Bitmap bitmap=wxNullBitmap) -> BitmapDataObject
  6473.  
  6474.         Constructor, optionally passing a bitmap (otherwise use `SetBitmap`
  6475.         later).
  6476.         '''
  6477.         newobj = _misc_.new_BitmapDataObject(*args, **kwargs)
  6478.         self.this = newobj.this
  6479.         self.thisown = 1
  6480.         del newobj.thisown
  6481.  
  6482.     
  6483.     def GetBitmap(*args, **kwargs):
  6484.         """
  6485.         GetBitmap(self) -> Bitmap
  6486.  
  6487.         Returns the bitmap associated with the data object.  You may wish to
  6488.         override this method (by deriving from `wx.PyBitmapDataObject`) when
  6489.         offering data on-demand, but this is not required by wxWidgets'
  6490.         internals. Use this method to get data in bitmap form from the
  6491.         `wx.Clipboard`.
  6492.         """
  6493.         return _misc_.BitmapDataObject_GetBitmap(*args, **kwargs)
  6494.  
  6495.     
  6496.     def SetBitmap(*args, **kwargs):
  6497.         '''
  6498.         SetBitmap(self, Bitmap bitmap)
  6499.  
  6500.         Sets the bitmap associated with the data object. This method is called
  6501.         when the data object receives data. Usually there will be no reason to
  6502.         override this function.
  6503.         '''
  6504.         return _misc_.BitmapDataObject_SetBitmap(*args, **kwargs)
  6505.  
  6506.  
  6507.  
  6508. class BitmapDataObjectPtr(BitmapDataObject):
  6509.     
  6510.     def __init__(self, this):
  6511.         self.this = this
  6512.         if not hasattr(self, 'thisown'):
  6513.             self.thisown = 0
  6514.         
  6515.         self.__class__ = BitmapDataObject
  6516.  
  6517.  
  6518. _misc_.BitmapDataObject_swigregister(BitmapDataObjectPtr)
  6519.  
  6520. class PyBitmapDataObject(BitmapDataObject):
  6521.     '''
  6522.     wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
  6523.     Python-aware and knows how to reflect calls to its C++ virtual methods
  6524.     to methods in the Python derived class. To be able to provide bitmap
  6525.     data on demand derive from this class and overload `GetBitmap`.
  6526.     '''
  6527.     
  6528.     def __repr__(self):
  6529.         return '<%s.%s; proxy of C++ wxPyBitmapDataObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6530.  
  6531.     
  6532.     def __init__(self, *args, **kwargs):
  6533.         '''
  6534.         __init__(self, Bitmap bitmap=wxNullBitmap) -> PyBitmapDataObject
  6535.  
  6536.         wx.PyBitmapDataObject is a version of `wx.BitmapDataObject` that is
  6537.         Python-aware and knows how to reflect calls to its C++ virtual methods
  6538.         to methods in the Python derived class. To be able to provide bitmap
  6539.         data on demand derive from this class and overload `GetBitmap`.
  6540.         '''
  6541.         newobj = _misc_.new_PyBitmapDataObject(*args, **kwargs)
  6542.         self.this = newobj.this
  6543.         self.thisown = 1
  6544.         del newobj.thisown
  6545.         self._setCallbackInfo(self, PyBitmapDataObject)
  6546.  
  6547.     
  6548.     def _setCallbackInfo(*args, **kwargs):
  6549.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  6550.         return _misc_.PyBitmapDataObject__setCallbackInfo(*args, **kwargs)
  6551.  
  6552.  
  6553.  
  6554. class PyBitmapDataObjectPtr(PyBitmapDataObject):
  6555.     
  6556.     def __init__(self, this):
  6557.         self.this = this
  6558.         if not hasattr(self, 'thisown'):
  6559.             self.thisown = 0
  6560.         
  6561.         self.__class__ = PyBitmapDataObject
  6562.  
  6563.  
  6564. _misc_.PyBitmapDataObject_swigregister(PyBitmapDataObjectPtr)
  6565.  
  6566. class FileDataObject(DataObjectSimple):
  6567.     '''
  6568.     wx.FileDataObject is a specialization of `wx.DataObjectSimple` for
  6569.     file names. The program works with it just as if it were a list of
  6570.     absolute file names, but internally it uses the same format as
  6571.     Explorer and other compatible programs under Windows or GNOME/KDE
  6572.     filemanager under Unix which makes it possible to receive files from
  6573.     them using this class.
  6574.     '''
  6575.     
  6576.     def __repr__(self):
  6577.         return '<%s.%s; proxy of C++ wxFileDataObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6578.  
  6579.     
  6580.     def __init__(self, *args, **kwargs):
  6581.         '''__init__(self) -> FileDataObject'''
  6582.         newobj = _misc_.new_FileDataObject(*args, **kwargs)
  6583.         self.this = newobj.this
  6584.         self.thisown = 1
  6585.         del newobj.thisown
  6586.  
  6587.     
  6588.     def GetFilenames(*args, **kwargs):
  6589.         '''
  6590.         GetFilenames(self) -> [names]
  6591.  
  6592.         Returns a list of file names.
  6593.         '''
  6594.         return _misc_.FileDataObject_GetFilenames(*args, **kwargs)
  6595.  
  6596.     
  6597.     def AddFile(*args, **kwargs):
  6598.         '''
  6599.         AddFile(self, String filename)
  6600.  
  6601.         Adds a file to the list of files represented by this data object.
  6602.         '''
  6603.         return _misc_.FileDataObject_AddFile(*args, **kwargs)
  6604.  
  6605.  
  6606.  
  6607. class FileDataObjectPtr(FileDataObject):
  6608.     
  6609.     def __init__(self, this):
  6610.         self.this = this
  6611.         if not hasattr(self, 'thisown'):
  6612.             self.thisown = 0
  6613.         
  6614.         self.__class__ = FileDataObject
  6615.  
  6616.  
  6617. _misc_.FileDataObject_swigregister(FileDataObjectPtr)
  6618.  
  6619. class CustomDataObject(DataObjectSimple):
  6620.     '''
  6621.     wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
  6622.     some application-specific data in arbitrary format.  Python strings
  6623.     are used for getting and setting data, but any picklable object can
  6624.     easily be transfered via strings.  A copy of the data is stored in the
  6625.     data object.
  6626.     '''
  6627.     
  6628.     def __repr__(self):
  6629.         return '<%s.%s; proxy of C++ wxCustomDataObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6630.  
  6631.     
  6632.     def __init__(self, *args):
  6633.         '''
  6634.         __init__(self, DataFormat format) -> CustomDataObject
  6635.         __init__(self, String formatName) -> CustomDataObject
  6636.         __init__(self) -> CustomDataObject
  6637.  
  6638.         wx.CustomDataObject is a specialization of `wx.DataObjectSimple` for
  6639.         some application-specific data in arbitrary format.  Python strings
  6640.         are used for getting and setting data, but any picklable object can
  6641.         easily be transfered via strings.  A copy of the data is stored in the
  6642.         data object.
  6643.         '''
  6644.         newobj = _misc_.new_CustomDataObject(*args)
  6645.         self.this = newobj.this
  6646.         self.thisown = 1
  6647.         del newobj.thisown
  6648.  
  6649.     
  6650.     def SetData(*args, **kwargs):
  6651.         '''
  6652.         SetData(self, String data) -> bool
  6653.  
  6654.         Copy the data value to the data object.
  6655.         '''
  6656.         return _misc_.CustomDataObject_SetData(*args, **kwargs)
  6657.  
  6658.     TakeData = SetData
  6659.     
  6660.     def GetSize(*args, **kwargs):
  6661.         '''
  6662.         GetSize(self) -> size_t
  6663.  
  6664.         Get the size of the data.
  6665.         '''
  6666.         return _misc_.CustomDataObject_GetSize(*args, **kwargs)
  6667.  
  6668.     
  6669.     def GetData(*args, **kwargs):
  6670.         '''
  6671.         GetData(self) -> String
  6672.  
  6673.         Returns the data bytes from the data object as a string.
  6674.         '''
  6675.         return _misc_.CustomDataObject_GetData(*args, **kwargs)
  6676.  
  6677.  
  6678.  
  6679. class CustomDataObjectPtr(CustomDataObject):
  6680.     
  6681.     def __init__(self, this):
  6682.         self.this = this
  6683.         if not hasattr(self, 'thisown'):
  6684.             self.thisown = 0
  6685.         
  6686.         self.__class__ = CustomDataObject
  6687.  
  6688.  
  6689. _misc_.CustomDataObject_swigregister(CustomDataObjectPtr)
  6690.  
  6691. class URLDataObject(DataObject):
  6692.     '''
  6693.     This data object holds a URL in a format that is compatible with some
  6694.     browsers such that it is able to be dragged to or from them.
  6695.     '''
  6696.     
  6697.     def __repr__(self):
  6698.         return '<%s.%s; proxy of C++ wxURLDataObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6699.  
  6700.     
  6701.     def __init__(self, *args, **kwargs):
  6702.         '''
  6703.         __init__(self) -> URLDataObject
  6704.  
  6705.         This data object holds a URL in a format that is compatible with some
  6706.         browsers such that it is able to be dragged to or from them.
  6707.         '''
  6708.         newobj = _misc_.new_URLDataObject(*args, **kwargs)
  6709.         self.this = newobj.this
  6710.         self.thisown = 1
  6711.         del newobj.thisown
  6712.  
  6713.     
  6714.     def GetURL(*args, **kwargs):
  6715.         '''
  6716.         GetURL(self) -> String
  6717.  
  6718.         Returns a string containing the current URL.
  6719.         '''
  6720.         return _misc_.URLDataObject_GetURL(*args, **kwargs)
  6721.  
  6722.     
  6723.     def SetURL(*args, **kwargs):
  6724.         '''
  6725.         SetURL(self, String url)
  6726.  
  6727.         Set the URL.
  6728.         '''
  6729.         return _misc_.URLDataObject_SetURL(*args, **kwargs)
  6730.  
  6731.  
  6732.  
  6733. class URLDataObjectPtr(URLDataObject):
  6734.     
  6735.     def __init__(self, this):
  6736.         self.this = this
  6737.         if not hasattr(self, 'thisown'):
  6738.             self.thisown = 0
  6739.         
  6740.         self.__class__ = URLDataObject
  6741.  
  6742.  
  6743. _misc_.URLDataObject_swigregister(URLDataObjectPtr)
  6744.  
  6745. class MetafileDataObject(DataObjectSimple):
  6746.     '''Proxy of C++ MetafileDataObject class'''
  6747.     
  6748.     def __repr__(self):
  6749.         return '<%s.%s; proxy of C++ wxMetafileDataObject instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6750.  
  6751.     
  6752.     def __init__(self, *args, **kwargs):
  6753.         '''__init__(self) -> MetafileDataObject'''
  6754.         newobj = _misc_.new_MetafileDataObject(*args, **kwargs)
  6755.         self.this = newobj.this
  6756.         self.thisown = 1
  6757.         del newobj.thisown
  6758.  
  6759.     
  6760.     def SetMetafile(*args, **kwargs):
  6761.         '''SetMetafile(self, wxMetafile metafile)'''
  6762.         return _misc_.MetafileDataObject_SetMetafile(*args, **kwargs)
  6763.  
  6764.     
  6765.     def GetMetafile(*args, **kwargs):
  6766.         '''GetMetafile(self) -> wxMetafile'''
  6767.         return _misc_.MetafileDataObject_GetMetafile(*args, **kwargs)
  6768.  
  6769.  
  6770.  
  6771. class MetafileDataObjectPtr(MetafileDataObject):
  6772.     
  6773.     def __init__(self, this):
  6774.         self.this = this
  6775.         if not hasattr(self, 'thisown'):
  6776.             self.thisown = 0
  6777.         
  6778.         self.__class__ = MetafileDataObject
  6779.  
  6780.  
  6781. _misc_.MetafileDataObject_swigregister(MetafileDataObjectPtr)
  6782. Drag_CopyOnly = _misc_.Drag_CopyOnly
  6783. Drag_AllowMove = _misc_.Drag_AllowMove
  6784. Drag_DefaultMove = _misc_.Drag_DefaultMove
  6785. DragError = _misc_.DragError
  6786. DragNone = _misc_.DragNone
  6787. DragCopy = _misc_.DragCopy
  6788. DragMove = _misc_.DragMove
  6789. DragLink = _misc_.DragLink
  6790. DragCancel = _misc_.DragCancel
  6791.  
  6792. def IsDragResultOk(*args, **kwargs):
  6793.     '''IsDragResultOk(int res) -> bool'''
  6794.     return _misc_.IsDragResultOk(*args, **kwargs)
  6795.  
  6796.  
  6797. class DropSource(object):
  6798.     '''Proxy of C++ DropSource class'''
  6799.     
  6800.     def __repr__(self):
  6801.         return '<%s.%s; proxy of C++ wxPyDropSource instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6802.  
  6803.     
  6804.     def __init__(self, *args, **kwargs):
  6805.         '''
  6806.         __init__(self, Window win, Cursor copy=wxNullCursor, Cursor move=wxNullCursor, 
  6807.             Cursor none=wxNullCursor) -> DropSource
  6808.         '''
  6809.         newobj = _misc_.new_DropSource(*args, **kwargs)
  6810.         self.this = newobj.this
  6811.         self.thisown = 1
  6812.         del newobj.thisown
  6813.         self._setCallbackInfo(self, DropSource, 0)
  6814.  
  6815.     
  6816.     def _setCallbackInfo(*args, **kwargs):
  6817.         '''_setCallbackInfo(self, PyObject self, PyObject _class, int incref)'''
  6818.         return _misc_.DropSource__setCallbackInfo(*args, **kwargs)
  6819.  
  6820.     
  6821.     def __del__(self, destroy = _misc_.delete_DropSource):
  6822.         '''__del__(self)'''
  6823.         
  6824.         try:
  6825.             if self.thisown:
  6826.                 destroy(self)
  6827.         except:
  6828.             pass
  6829.  
  6830.  
  6831.     
  6832.     def SetData(*args, **kwargs):
  6833.         '''SetData(self, DataObject data)'''
  6834.         return _misc_.DropSource_SetData(*args, **kwargs)
  6835.  
  6836.     
  6837.     def GetDataObject(*args, **kwargs):
  6838.         '''GetDataObject(self) -> DataObject'''
  6839.         return _misc_.DropSource_GetDataObject(*args, **kwargs)
  6840.  
  6841.     
  6842.     def SetCursor(*args, **kwargs):
  6843.         '''SetCursor(self, int res, Cursor cursor)'''
  6844.         return _misc_.DropSource_SetCursor(*args, **kwargs)
  6845.  
  6846.     
  6847.     def DoDragDrop(*args, **kwargs):
  6848.         '''DoDragDrop(self, int flags=Drag_CopyOnly) -> int'''
  6849.         return _misc_.DropSource_DoDragDrop(*args, **kwargs)
  6850.  
  6851.     
  6852.     def base_GiveFeedback(*args, **kwargs):
  6853.         '''base_GiveFeedback(self, int effect) -> bool'''
  6854.         return _misc_.DropSource_base_GiveFeedback(*args, **kwargs)
  6855.  
  6856.  
  6857.  
  6858. class DropSourcePtr(DropSource):
  6859.     
  6860.     def __init__(self, this):
  6861.         self.this = this
  6862.         if not hasattr(self, 'thisown'):
  6863.             self.thisown = 0
  6864.         
  6865.         self.__class__ = DropSource
  6866.  
  6867.  
  6868. _misc_.DropSource_swigregister(DropSourcePtr)
  6869.  
  6870. def DROP_ICON(filename):
  6871.     '''
  6872.     Returns either a `wx.Cursor` or `wx.Icon` created from the image file
  6873.     ``filename``.  This function is useful with the `wx.DropSource` class
  6874.     which, depending on platform accepts either a icon or a cursor.
  6875.     '''
  6876.     img = wx.Image(filename)
  6877.     if wx.Platform == '__WXGTK__':
  6878.         return wx.IconFromBitmap(wx.BitmapFromImage(img))
  6879.     else:
  6880.         return wx.CursorFromImage(img)
  6881.  
  6882.  
  6883. class DropTarget(object):
  6884.     '''Proxy of C++ DropTarget class'''
  6885.     
  6886.     def __repr__(self):
  6887.         return '<%s.%s; proxy of C++ wxPyDropTarget instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6888.  
  6889.     
  6890.     def __init__(self, *args, **kwargs):
  6891.         '''__init__(self, DataObject dataObject=None) -> DropTarget'''
  6892.         newobj = _misc_.new_DropTarget(*args, **kwargs)
  6893.         self.this = newobj.this
  6894.         self.thisown = 1
  6895.         del newobj.thisown
  6896.         self._setCallbackInfo(self, DropTarget)
  6897.  
  6898.     
  6899.     def _setCallbackInfo(*args, **kwargs):
  6900.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  6901.         return _misc_.DropTarget__setCallbackInfo(*args, **kwargs)
  6902.  
  6903.     
  6904.     def __del__(self, destroy = _misc_.delete_DropTarget):
  6905.         '''__del__(self)'''
  6906.         
  6907.         try:
  6908.             if self.thisown:
  6909.                 destroy(self)
  6910.         except:
  6911.             pass
  6912.  
  6913.  
  6914.     
  6915.     def GetDataObject(*args, **kwargs):
  6916.         '''GetDataObject(self) -> DataObject'''
  6917.         return _misc_.DropTarget_GetDataObject(*args, **kwargs)
  6918.  
  6919.     
  6920.     def SetDataObject(*args, **kwargs):
  6921.         '''SetDataObject(self, DataObject dataObject)'''
  6922.         return _misc_.DropTarget_SetDataObject(*args, **kwargs)
  6923.  
  6924.     
  6925.     def base_OnEnter(*args, **kwargs):
  6926.         '''base_OnEnter(self, int x, int y, int def) -> int'''
  6927.         return _misc_.DropTarget_base_OnEnter(*args, **kwargs)
  6928.  
  6929.     
  6930.     def base_OnDragOver(*args, **kwargs):
  6931.         '''base_OnDragOver(self, int x, int y, int def) -> int'''
  6932.         return _misc_.DropTarget_base_OnDragOver(*args, **kwargs)
  6933.  
  6934.     
  6935.     def base_OnLeave(*args, **kwargs):
  6936.         '''base_OnLeave(self)'''
  6937.         return _misc_.DropTarget_base_OnLeave(*args, **kwargs)
  6938.  
  6939.     
  6940.     def base_OnDrop(*args, **kwargs):
  6941.         '''base_OnDrop(self, int x, int y) -> bool'''
  6942.         return _misc_.DropTarget_base_OnDrop(*args, **kwargs)
  6943.  
  6944.     
  6945.     def GetData(*args, **kwargs):
  6946.         '''GetData(self) -> bool'''
  6947.         return _misc_.DropTarget_GetData(*args, **kwargs)
  6948.  
  6949.     
  6950.     def SetDefaultAction(*args, **kwargs):
  6951.         '''SetDefaultAction(self, int action)'''
  6952.         return _misc_.DropTarget_SetDefaultAction(*args, **kwargs)
  6953.  
  6954.     
  6955.     def GetDefaultAction(*args, **kwargs):
  6956.         '''GetDefaultAction(self) -> int'''
  6957.         return _misc_.DropTarget_GetDefaultAction(*args, **kwargs)
  6958.  
  6959.  
  6960.  
  6961. class DropTargetPtr(DropTarget):
  6962.     
  6963.     def __init__(self, this):
  6964.         self.this = this
  6965.         if not hasattr(self, 'thisown'):
  6966.             self.thisown = 0
  6967.         
  6968.         self.__class__ = DropTarget
  6969.  
  6970.  
  6971. _misc_.DropTarget_swigregister(DropTargetPtr)
  6972. PyDropTarget = DropTarget
  6973.  
  6974. class TextDropTarget(DropTarget):
  6975.     '''Proxy of C++ TextDropTarget class'''
  6976.     
  6977.     def __repr__(self):
  6978.         return '<%s.%s; proxy of C++ wxPyTextDropTarget instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  6979.  
  6980.     
  6981.     def __init__(self, *args, **kwargs):
  6982.         '''__init__(self) -> TextDropTarget'''
  6983.         newobj = _misc_.new_TextDropTarget(*args, **kwargs)
  6984.         self.this = newobj.this
  6985.         self.thisown = 1
  6986.         del newobj.thisown
  6987.         self._setCallbackInfo(self, TextDropTarget)
  6988.  
  6989.     
  6990.     def _setCallbackInfo(*args, **kwargs):
  6991.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  6992.         return _misc_.TextDropTarget__setCallbackInfo(*args, **kwargs)
  6993.  
  6994.     
  6995.     def base_OnEnter(*args, **kwargs):
  6996.         '''base_OnEnter(self, int x, int y, int def) -> int'''
  6997.         return _misc_.TextDropTarget_base_OnEnter(*args, **kwargs)
  6998.  
  6999.     
  7000.     def base_OnDragOver(*args, **kwargs):
  7001.         '''base_OnDragOver(self, int x, int y, int def) -> int'''
  7002.         return _misc_.TextDropTarget_base_OnDragOver(*args, **kwargs)
  7003.  
  7004.     
  7005.     def base_OnLeave(*args, **kwargs):
  7006.         '''base_OnLeave(self)'''
  7007.         return _misc_.TextDropTarget_base_OnLeave(*args, **kwargs)
  7008.  
  7009.     
  7010.     def base_OnDrop(*args, **kwargs):
  7011.         '''base_OnDrop(self, int x, int y) -> bool'''
  7012.         return _misc_.TextDropTarget_base_OnDrop(*args, **kwargs)
  7013.  
  7014.     
  7015.     def base_OnData(*args, **kwargs):
  7016.         '''base_OnData(self, int x, int y, int def) -> int'''
  7017.         return _misc_.TextDropTarget_base_OnData(*args, **kwargs)
  7018.  
  7019.  
  7020.  
  7021. class TextDropTargetPtr(TextDropTarget):
  7022.     
  7023.     def __init__(self, this):
  7024.         self.this = this
  7025.         if not hasattr(self, 'thisown'):
  7026.             self.thisown = 0
  7027.         
  7028.         self.__class__ = TextDropTarget
  7029.  
  7030.  
  7031. _misc_.TextDropTarget_swigregister(TextDropTargetPtr)
  7032.  
  7033. class FileDropTarget(DropTarget):
  7034.     '''Proxy of C++ FileDropTarget class'''
  7035.     
  7036.     def __repr__(self):
  7037.         return '<%s.%s; proxy of C++ wxPyFileDropTarget instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7038.  
  7039.     
  7040.     def __init__(self, *args, **kwargs):
  7041.         '''__init__(self) -> FileDropTarget'''
  7042.         newobj = _misc_.new_FileDropTarget(*args, **kwargs)
  7043.         self.this = newobj.this
  7044.         self.thisown = 1
  7045.         del newobj.thisown
  7046.         self._setCallbackInfo(self, FileDropTarget)
  7047.  
  7048.     
  7049.     def _setCallbackInfo(*args, **kwargs):
  7050.         '''_setCallbackInfo(self, PyObject self, PyObject _class)'''
  7051.         return _misc_.FileDropTarget__setCallbackInfo(*args, **kwargs)
  7052.  
  7053.     
  7054.     def base_OnEnter(*args, **kwargs):
  7055.         '''base_OnEnter(self, int x, int y, int def) -> int'''
  7056.         return _misc_.FileDropTarget_base_OnEnter(*args, **kwargs)
  7057.  
  7058.     
  7059.     def base_OnDragOver(*args, **kwargs):
  7060.         '''base_OnDragOver(self, int x, int y, int def) -> int'''
  7061.         return _misc_.FileDropTarget_base_OnDragOver(*args, **kwargs)
  7062.  
  7063.     
  7064.     def base_OnLeave(*args, **kwargs):
  7065.         '''base_OnLeave(self)'''
  7066.         return _misc_.FileDropTarget_base_OnLeave(*args, **kwargs)
  7067.  
  7068.     
  7069.     def base_OnDrop(*args, **kwargs):
  7070.         '''base_OnDrop(self, int x, int y) -> bool'''
  7071.         return _misc_.FileDropTarget_base_OnDrop(*args, **kwargs)
  7072.  
  7073.     
  7074.     def base_OnData(*args, **kwargs):
  7075.         '''base_OnData(self, int x, int y, int def) -> int'''
  7076.         return _misc_.FileDropTarget_base_OnData(*args, **kwargs)
  7077.  
  7078.  
  7079.  
  7080. class FileDropTargetPtr(FileDropTarget):
  7081.     
  7082.     def __init__(self, this):
  7083.         self.this = this
  7084.         if not hasattr(self, 'thisown'):
  7085.             self.thisown = 0
  7086.         
  7087.         self.__class__ = FileDropTarget
  7088.  
  7089.  
  7090. _misc_.FileDropTarget_swigregister(FileDropTargetPtr)
  7091.  
  7092. class Clipboard(_core.Object):
  7093.     """
  7094.     wx.Clipboard represents the system clipboard and provides methods to
  7095.     copy data to it or paste data from it.  Normally, you should only use
  7096.     ``wx.TheClipboard`` which is a reference to a global wx.Clipboard
  7097.     instance.
  7098.  
  7099.     Call ``wx.TheClipboard``'s `Open` method to get ownership of the
  7100.     clipboard. If this operation returns True, you now own the
  7101.     clipboard. Call `SetData` to put data on the clipboard, or `GetData`
  7102.     to retrieve data from the clipboard.  Call `Close` to close the
  7103.     clipboard and relinquish ownership. You should keep the clipboard open
  7104.     only momentarily.
  7105.  
  7106.     :see: `wx.DataObject`
  7107.  
  7108.     """
  7109.     
  7110.     def __repr__(self):
  7111.         return '<%s.%s; proxy of C++ wxClipboard instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7112.  
  7113.     
  7114.     def __init__(self, *args, **kwargs):
  7115.         '''__init__(self) -> Clipboard'''
  7116.         newobj = _misc_.new_Clipboard(*args, **kwargs)
  7117.         self.this = newobj.this
  7118.         self.thisown = 1
  7119.         del newobj.thisown
  7120.  
  7121.     
  7122.     def __del__(self, destroy = _misc_.delete_Clipboard):
  7123.         '''__del__(self)'''
  7124.         
  7125.         try:
  7126.             if self.thisown:
  7127.                 destroy(self)
  7128.         except:
  7129.             pass
  7130.  
  7131.  
  7132.     
  7133.     def Open(*args, **kwargs):
  7134.         '''
  7135.         Open(self) -> bool
  7136.  
  7137.         Call this function to open the clipboard before calling SetData and
  7138.         GetData.  Call Close when you have finished with the clipboard.  You
  7139.         should keep the clipboard open for only a very short time.  Returns
  7140.         True on success.
  7141.         '''
  7142.         return _misc_.Clipboard_Open(*args, **kwargs)
  7143.  
  7144.     
  7145.     def Close(*args, **kwargs):
  7146.         '''
  7147.         Close(self)
  7148.  
  7149.         Closes the clipboard.
  7150.         '''
  7151.         return _misc_.Clipboard_Close(*args, **kwargs)
  7152.  
  7153.     
  7154.     def IsOpened(*args, **kwargs):
  7155.         '''
  7156.         IsOpened(self) -> bool
  7157.  
  7158.         Query whether the clipboard is opened
  7159.         '''
  7160.         return _misc_.Clipboard_IsOpened(*args, **kwargs)
  7161.  
  7162.     
  7163.     def AddData(*args, **kwargs):
  7164.         '''
  7165.         AddData(self, DataObject data) -> bool
  7166.  
  7167.         Call this function to add the data object to the clipboard. You may
  7168.         call this function repeatedly after having cleared the clipboard.
  7169.         After this function has been called, the clipboard owns the data, so
  7170.         do not delete the data explicitly.
  7171.  
  7172.         :see: `wx.DataObject`
  7173.         '''
  7174.         return _misc_.Clipboard_AddData(*args, **kwargs)
  7175.  
  7176.     
  7177.     def SetData(*args, **kwargs):
  7178.         '''
  7179.         SetData(self, DataObject data) -> bool
  7180.  
  7181.         Set the clipboard data, this is the same as `Clear` followed by
  7182.         `AddData`.
  7183.  
  7184.         :see: `wx.DataObject`
  7185.         '''
  7186.         return _misc_.Clipboard_SetData(*args, **kwargs)
  7187.  
  7188.     
  7189.     def IsSupported(*args, **kwargs):
  7190.         '''
  7191.         IsSupported(self, DataFormat format) -> bool
  7192.  
  7193.         Returns True if the given format is available in the data object(s) on
  7194.         the clipboard.
  7195.         '''
  7196.         return _misc_.Clipboard_IsSupported(*args, **kwargs)
  7197.  
  7198.     
  7199.     def GetData(*args, **kwargs):
  7200.         '''
  7201.         GetData(self, DataObject data) -> bool
  7202.  
  7203.         Call this function to fill data with data on the clipboard, if
  7204.         available in the required format. Returns true on success.
  7205.         '''
  7206.         return _misc_.Clipboard_GetData(*args, **kwargs)
  7207.  
  7208.     
  7209.     def Clear(*args, **kwargs):
  7210.         """
  7211.         Clear(self)
  7212.  
  7213.         Clears data from the clipboard object and also the system's clipboard
  7214.         if possible.
  7215.         """
  7216.         return _misc_.Clipboard_Clear(*args, **kwargs)
  7217.  
  7218.     
  7219.     def Flush(*args, **kwargs):
  7220.         '''
  7221.         Flush(self) -> bool
  7222.  
  7223.         Flushes the clipboard: this means that the data which is currently on
  7224.         clipboard will stay available even after the application exits,
  7225.         possibly eating memory, otherwise the clipboard will be emptied on
  7226.         exit.  Returns False if the operation is unsuccesful for any reason.
  7227.         '''
  7228.         return _misc_.Clipboard_Flush(*args, **kwargs)
  7229.  
  7230.     
  7231.     def UsePrimarySelection(*args, **kwargs):
  7232.         '''
  7233.         UsePrimarySelection(self, bool primary=True)
  7234.  
  7235.         On platforms supporting it (the X11 based platforms), selects the
  7236.         so called PRIMARY SELECTION as the clipboard as opposed to the
  7237.         normal clipboard, if primary is True.
  7238.         '''
  7239.         return _misc_.Clipboard_UsePrimarySelection(*args, **kwargs)
  7240.  
  7241.     
  7242.     def Get(*args, **kwargs):
  7243.         '''
  7244.         Get() -> Clipboard
  7245.  
  7246.         Returns global instance (wxTheClipboard) of the object.
  7247.         '''
  7248.         return _misc_.Clipboard_Get(*args, **kwargs)
  7249.  
  7250.     Get = staticmethod(Get)
  7251.  
  7252.  
  7253. class ClipboardPtr(Clipboard):
  7254.     
  7255.     def __init__(self, this):
  7256.         self.this = this
  7257.         if not hasattr(self, 'thisown'):
  7258.             self.thisown = 0
  7259.         
  7260.         self.__class__ = Clipboard
  7261.  
  7262.  
  7263. _misc_.Clipboard_swigregister(ClipboardPtr)
  7264.  
  7265. def Clipboard_Get(*args, **kwargs):
  7266.     '''
  7267.     Clipboard_Get() -> Clipboard
  7268.  
  7269.     Returns global instance (wxTheClipboard) of the object.
  7270.     '''
  7271.     return _misc_.Clipboard_Get(*args, **kwargs)
  7272.  
  7273.  
  7274. class _wxPyDelayedInitWrapper(object):
  7275.     
  7276.     def __init__(self, initfunc, *args, **kwargs):
  7277.         self._initfunc = initfunc
  7278.         self._args = args
  7279.         self._kwargs = kwargs
  7280.         self._instance = None
  7281.  
  7282.     
  7283.     def _checkInstance(self):
  7284.         if self._instance is None:
  7285.             if wx.GetApp():
  7286.                 self._instance = self._initfunc(*self._args, **self._kwargs)
  7287.             
  7288.         
  7289.  
  7290.     
  7291.     def __getattr__(self, name):
  7292.         self._checkInstance()
  7293.         return getattr(self._instance, name)
  7294.  
  7295.     
  7296.     def __repr__(self):
  7297.         self._checkInstance()
  7298.         return repr(self._instance)
  7299.  
  7300.  
  7301. TheClipboard = _wxPyDelayedInitWrapper(Clipboard.Get)
  7302.  
  7303. class ClipboardLocker(object):
  7304.     '''
  7305.     A helpful class for opening the clipboard and automatically
  7306.     closing it when the locker is destroyed.
  7307.     '''
  7308.     
  7309.     def __repr__(self):
  7310.         return '<%s.%s; proxy of C++ wxClipboardLocker instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7311.  
  7312.     
  7313.     def __init__(self, *args, **kwargs):
  7314.         '''
  7315.         __init__(self, Clipboard clipboard=None) -> ClipboardLocker
  7316.  
  7317.         A helpful class for opening the clipboard and automatically
  7318.         closing it when the locker is destroyed.
  7319.         '''
  7320.         newobj = _misc_.new_ClipboardLocker(*args, **kwargs)
  7321.         self.this = newobj.this
  7322.         self.thisown = 1
  7323.         del newobj.thisown
  7324.  
  7325.     
  7326.     def __del__(self, destroy = _misc_.delete_ClipboardLocker):
  7327.         '''__del__(self)'''
  7328.         
  7329.         try:
  7330.             if self.thisown:
  7331.                 destroy(self)
  7332.         except:
  7333.             pass
  7334.  
  7335.  
  7336.     
  7337.     def __nonzero__(*args, **kwargs):
  7338.         '''
  7339.         __nonzero__(self) -> bool
  7340.  
  7341.         A ClipboardLocker instance evaluates to True if the clipboard was
  7342.         successfully opened.
  7343.         '''
  7344.         return _misc_.ClipboardLocker___nonzero__(*args, **kwargs)
  7345.  
  7346.  
  7347.  
  7348. class ClipboardLockerPtr(ClipboardLocker):
  7349.     
  7350.     def __init__(self, this):
  7351.         self.this = this
  7352.         if not hasattr(self, 'thisown'):
  7353.             self.thisown = 0
  7354.         
  7355.         self.__class__ = ClipboardLocker
  7356.  
  7357.  
  7358. _misc_.ClipboardLocker_swigregister(ClipboardLockerPtr)
  7359.  
  7360. class VideoMode(object):
  7361.     '''A simple struct containing video mode parameters for a display'''
  7362.     
  7363.     def __repr__(self):
  7364.         return '<%s.%s; proxy of C++ wxVideoMode instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7365.  
  7366.     
  7367.     def __init__(self, *args, **kwargs):
  7368.         '''
  7369.         __init__(self, int width=0, int height=0, int depth=0, int freq=0) -> VideoMode
  7370.  
  7371.         A simple struct containing video mode parameters for a display
  7372.         '''
  7373.         newobj = _misc_.new_VideoMode(*args, **kwargs)
  7374.         self.this = newobj.this
  7375.         self.thisown = 1
  7376.         del newobj.thisown
  7377.  
  7378.     
  7379.     def __del__(self, destroy = _misc_.delete_VideoMode):
  7380.         '''__del__(self)'''
  7381.         
  7382.         try:
  7383.             if self.thisown:
  7384.                 destroy(self)
  7385.         except:
  7386.             pass
  7387.  
  7388.  
  7389.     
  7390.     def Matches(*args, **kwargs):
  7391.         '''
  7392.         Matches(self, VideoMode other) -> bool
  7393.  
  7394.         Returns true if this mode matches the other one in the sense that all
  7395.         non zero fields of the other mode have the same value in this
  7396.         one (except for refresh which is allowed to have a greater value)
  7397.         '''
  7398.         return _misc_.VideoMode_Matches(*args, **kwargs)
  7399.  
  7400.     
  7401.     def GetWidth(*args, **kwargs):
  7402.         '''
  7403.         GetWidth(self) -> int
  7404.  
  7405.         Returns the screen width in pixels (e.g. 640*480), 0 means unspecified
  7406.         '''
  7407.         return _misc_.VideoMode_GetWidth(*args, **kwargs)
  7408.  
  7409.     
  7410.     def GetHeight(*args, **kwargs):
  7411.         '''
  7412.         GetHeight(self) -> int
  7413.  
  7414.         Returns the screen width in pixels (e.g. 640*480), 0 means
  7415.         unspecified
  7416.         '''
  7417.         return _misc_.VideoMode_GetHeight(*args, **kwargs)
  7418.  
  7419.     
  7420.     def GetDepth(*args, **kwargs):
  7421.         """
  7422.         GetDepth(self) -> int
  7423.  
  7424.         Returns the screen's bits per pixel (e.g. 32), 1 is monochrome and 0
  7425.         means unspecified/known
  7426.         """
  7427.         return _misc_.VideoMode_GetDepth(*args, **kwargs)
  7428.  
  7429.     
  7430.     def IsOk(*args, **kwargs):
  7431.         '''
  7432.         IsOk(self) -> bool
  7433.  
  7434.         returns true if the object has been initialized
  7435.         '''
  7436.         return _misc_.VideoMode_IsOk(*args, **kwargs)
  7437.  
  7438.     
  7439.     def __nonzero__(self):
  7440.         return self.IsOk()
  7441.  
  7442.     
  7443.     def __eq__(*args, **kwargs):
  7444.         '''__eq__(self, VideoMode other) -> bool'''
  7445.         return _misc_.VideoMode___eq__(*args, **kwargs)
  7446.  
  7447.     
  7448.     def __ne__(*args, **kwargs):
  7449.         '''__ne__(self, VideoMode other) -> bool'''
  7450.         return _misc_.VideoMode___ne__(*args, **kwargs)
  7451.  
  7452.     w = property(_misc_.VideoMode_w_get, _misc_.VideoMode_w_set)
  7453.     h = property(_misc_.VideoMode_h_get, _misc_.VideoMode_h_set)
  7454.     bpp = property(_misc_.VideoMode_bpp_get, _misc_.VideoMode_bpp_set)
  7455.     refresh = property(_misc_.VideoMode_refresh_get, _misc_.VideoMode_refresh_set)
  7456.  
  7457.  
  7458. class VideoModePtr(VideoMode):
  7459.     
  7460.     def __init__(self, this):
  7461.         self.this = this
  7462.         if not hasattr(self, 'thisown'):
  7463.             self.thisown = 0
  7464.         
  7465.         self.__class__ = VideoMode
  7466.  
  7467.  
  7468. _misc_.VideoMode_swigregister(VideoModePtr)
  7469.  
  7470. class Display(object):
  7471.     '''Represents a display/monitor attached to the system'''
  7472.     
  7473.     def __repr__(self):
  7474.         return '<%s.%s; proxy of C++ wxDisplay instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7475.  
  7476.     
  7477.     def __init__(self, *args, **kwargs):
  7478.         '''
  7479.         __init__(self, size_t index=0) -> Display
  7480.  
  7481.         Set up a Display instance with the specified display.  The displays
  7482.         are numbered from 0 to GetCount() - 1, 0 is always the primary display
  7483.         and the only one which is always supported
  7484.         '''
  7485.         newobj = _misc_.new_Display(*args, **kwargs)
  7486.         self.this = newobj.this
  7487.         self.thisown = 1
  7488.         del newobj.thisown
  7489.  
  7490.     
  7491.     def __del__(self, destroy = _misc_.delete_Display):
  7492.         '''__del__(self)'''
  7493.         
  7494.         try:
  7495.             if self.thisown:
  7496.                 destroy(self)
  7497.         except:
  7498.             pass
  7499.  
  7500.  
  7501.     
  7502.     def GetCount(*args, **kwargs):
  7503.         '''
  7504.         GetCount() -> size_t
  7505.  
  7506.         Return the number of available displays.
  7507.         '''
  7508.         return _misc_.Display_GetCount(*args, **kwargs)
  7509.  
  7510.     GetCount = staticmethod(GetCount)
  7511.     
  7512.     def GetFromPoint(*args, **kwargs):
  7513.         """
  7514.         GetFromPoint(Point pt) -> int
  7515.  
  7516.         Find the display where the given point lies, return wx.NOT_FOUND if it
  7517.         doesn't belong to any display
  7518.         """
  7519.         return _misc_.Display_GetFromPoint(*args, **kwargs)
  7520.  
  7521.     GetFromPoint = staticmethod(GetFromPoint)
  7522.     
  7523.     def GetFromWindow(*args, **kwargs):
  7524.         '''
  7525.         GetFromWindow(Window window) -> int
  7526.  
  7527.         Find the display where the given window lies, return wx.NOT_FOUND if
  7528.         it is not shown at all.
  7529.         '''
  7530.         return _misc_.Display_GetFromWindow(*args, **kwargs)
  7531.  
  7532.     GetFromWindow = staticmethod(GetFromWindow)
  7533.     
  7534.     def IsOk(*args, **kwargs):
  7535.         '''
  7536.         IsOk(self) -> bool
  7537.  
  7538.         Return true if the object was initialized successfully
  7539.         '''
  7540.         return _misc_.Display_IsOk(*args, **kwargs)
  7541.  
  7542.     
  7543.     def __nonzero__(self):
  7544.         return self.IsOk()
  7545.  
  7546.     
  7547.     def GetGeometry(*args, **kwargs):
  7548.         '''
  7549.         GetGeometry(self) -> Rect
  7550.  
  7551.         Returns the bounding rectangle of the display whose index was passed
  7552.         to the constructor.
  7553.         '''
  7554.         return _misc_.Display_GetGeometry(*args, **kwargs)
  7555.  
  7556.     
  7557.     def GetName(*args, **kwargs):
  7558.         """
  7559.         GetName(self) -> String
  7560.  
  7561.         Returns the display's name. A name is not available on all platforms.
  7562.         """
  7563.         return _misc_.Display_GetName(*args, **kwargs)
  7564.  
  7565.     
  7566.     def IsPrimary(*args, **kwargs):
  7567.         '''
  7568.         IsPrimary(self) -> bool
  7569.  
  7570.         Returns true if the display is the primary display. The primary
  7571.         display is the one whose index is 0.
  7572.         '''
  7573.         return _misc_.Display_IsPrimary(*args, **kwargs)
  7574.  
  7575.     
  7576.     def GetModes(*args, **kwargs):
  7577.         '''
  7578.         GetModes(VideoMode mode=DefaultVideoMode) -> [videoMode...]
  7579.  
  7580.         Enumerate all video modes supported by this display matching the given
  7581.         one (in the sense of VideoMode.Match()).
  7582.  
  7583.         As any mode matches the default value of the argument and there is
  7584.         always at least one video mode supported by display, the returned
  7585.         array is only empty for the default value of the argument if this
  7586.         function is not supported at all on this platform.
  7587.         '''
  7588.         return _misc_.Display_GetModes(*args, **kwargs)
  7589.  
  7590.     
  7591.     def GetCurrentMode(*args, **kwargs):
  7592.         '''
  7593.         GetCurrentMode(self) -> VideoMode
  7594.  
  7595.         Get the current video mode.
  7596.         '''
  7597.         return _misc_.Display_GetCurrentMode(*args, **kwargs)
  7598.  
  7599.     
  7600.     def ChangeMode(*args, **kwargs):
  7601.         """
  7602.         ChangeMode(self, VideoMode mode=DefaultVideoMode) -> bool
  7603.  
  7604.         Changes the video mode of this display to the mode specified in the
  7605.         mode parameter.
  7606.  
  7607.         If wx.DefaultVideoMode is passed in as the mode parameter, the defined
  7608.         behaviour is that wx.Display will reset the video mode to the default
  7609.         mode used by the display.  On Windows, the behavior is normal.
  7610.         However, there are differences on other platforms. On Unix variations
  7611.         using X11 extensions it should behave as defined, but some
  7612.         irregularities may occur.
  7613.  
  7614.         On wxMac passing in wx.DefaultVideoMode as the mode parameter does
  7615.         nothing.  This happens because Carbon no longer has access to
  7616.         DMUseScreenPrefs, an undocumented function that changed the video mode
  7617.         to the system default by using the system's 'scrn' resource.
  7618.  
  7619.         Returns True if succeeded, False otherwise
  7620.         """
  7621.         return _misc_.Display_ChangeMode(*args, **kwargs)
  7622.  
  7623.     
  7624.     def ResetMode(*args, **kwargs):
  7625.         '''
  7626.         ResetMode(self)
  7627.  
  7628.         Restore the default video mode (just a more readable synonym)
  7629.         '''
  7630.         return _misc_.Display_ResetMode(*args, **kwargs)
  7631.  
  7632.  
  7633.  
  7634. class DisplayPtr(Display):
  7635.     
  7636.     def __init__(self, this):
  7637.         self.this = this
  7638.         if not hasattr(self, 'thisown'):
  7639.             self.thisown = 0
  7640.         
  7641.         self.__class__ = Display
  7642.  
  7643.  
  7644. _misc_.Display_swigregister(DisplayPtr)
  7645. DefaultVideoMode = cvar.DefaultVideoMode
  7646.  
  7647. def Display_GetCount(*args, **kwargs):
  7648.     '''
  7649.     Display_GetCount() -> size_t
  7650.  
  7651.     Return the number of available displays.
  7652.     '''
  7653.     return _misc_.Display_GetCount(*args, **kwargs)
  7654.  
  7655.  
  7656. def Display_GetFromPoint(*args, **kwargs):
  7657.     """
  7658.     Display_GetFromPoint(Point pt) -> int
  7659.  
  7660.     Find the display where the given point lies, return wx.NOT_FOUND if it
  7661.     doesn't belong to any display
  7662.     """
  7663.     return _misc_.Display_GetFromPoint(*args, **kwargs)
  7664.  
  7665.  
  7666. def Display_GetFromWindow(*args, **kwargs):
  7667.     '''
  7668.     Display_GetFromWindow(Window window) -> int
  7669.  
  7670.     Find the display where the given window lies, return wx.NOT_FOUND if
  7671.     it is not shown at all.
  7672.     '''
  7673.     return _misc_.Display_GetFromWindow(*args, **kwargs)
  7674.  
  7675.  
  7676. class StandardPaths(object):
  7677.     """
  7678.     wx.StandardPaths returns the standard locations in the file system and
  7679.     should be used by the programs to find their data files in a portable
  7680.     way.
  7681.  
  7682.     In the description of the methods below, the example return values are
  7683.     given for the Unix, Windows and Mac OS X systems, however please note
  7684.     that these are just the examples and the actual values may differ. For
  7685.     example, under Windows: the system administrator may change the
  7686.     standard directories locations, i.e. the Windows directory may be
  7687.     named W:\\Win2003 instead of the default C:\\Windows.
  7688.  
  7689.     The strings appname and username should be replaced with the value
  7690.     returned by `wx.App.GetAppName` and the name of the currently logged
  7691.     in user, respectively. The string prefix is only used under Unix and
  7692.     is /usr/local by default but may be changed using `SetInstallPrefix`.
  7693.  
  7694.     The directories returned by the methods of this class may or may not
  7695.     exist. If they don't exist, it's up to the caller to create them,
  7696.     wxStandardPaths doesn't do it.
  7697.  
  7698.     Finally note that these functions only work with standardly packaged
  7699.     applications. I.e. under Unix you should follow the standard
  7700.     installation conventions and under Mac you should create your
  7701.     application bundle according to the Apple guidelines. Again, this
  7702.     class doesn't help you to do it.
  7703.     """
  7704.     
  7705.     def __init__(self):
  7706.         raise RuntimeError, 'No constructor defined'
  7707.  
  7708.     
  7709.     def __repr__(self):
  7710.         return '<%s.%s; proxy of C++ wxStandardPaths instance at %s>' % (self.__class__.__module__, self.__class__.__name__, self.this)
  7711.  
  7712.     
  7713.     def Get(*args, **kwargs):
  7714.         '''
  7715.         Get() -> StandardPaths
  7716.  
  7717.         Return the global standard paths singleton
  7718.         '''
  7719.         return _misc_.StandardPaths_Get(*args, **kwargs)
  7720.  
  7721.     Get = staticmethod(Get)
  7722.     
  7723.     def GetConfigDir(*args, **kwargs):
  7724.         """
  7725.         GetConfigDir(self) -> String
  7726.  
  7727.         Return the directory with system config files: /etc under Unix,
  7728.         'c:\\Documents and Settings\\All Users\\Application Data' under Windows,
  7729.         /Library/Preferences for Mac
  7730.         """
  7731.         return _misc_.StandardPaths_GetConfigDir(*args, **kwargs)
  7732.  
  7733.     
  7734.     def GetUserConfigDir(*args, **kwargs):
  7735.         """
  7736.         GetUserConfigDir(self) -> String
  7737.  
  7738.         Return the directory for the user config files: $HOME under Unix,
  7739.         'c:\\Documents and Settings\\username' under Windows, and 
  7740.         ~/Library/Preferences under Mac
  7741.             
  7742.         Only use this if you have a single file to put there, otherwise
  7743.         `GetUserDataDir` is more appropriate
  7744.         """
  7745.         return _misc_.StandardPaths_GetUserConfigDir(*args, **kwargs)
  7746.  
  7747.     
  7748.     def GetDataDir(*args, **kwargs):
  7749.         """
  7750.         GetDataDir(self) -> String
  7751.  
  7752.         Return the location of the application's global, (i.e. not
  7753.         user-specific,) data files: prefix/share/appname under Unix,
  7754.         'c:\\Program Files\x07ppname' under Windows,
  7755.         appname.app/Contents/SharedSupport app bundle directory under Mac.
  7756.         """
  7757.         return _misc_.StandardPaths_GetDataDir(*args, **kwargs)
  7758.  
  7759.     
  7760.     def GetLocalDataDir(*args, **kwargs):
  7761.         '''
  7762.         GetLocalDataDir(self) -> String
  7763.  
  7764.         Return the location for application data files which are
  7765.         host-specific.  Same as `GetDataDir` except under Unix where it is
  7766.         /etc/appname
  7767.         '''
  7768.         return _misc_.StandardPaths_GetLocalDataDir(*args, **kwargs)
  7769.  
  7770.     
  7771.     def GetUserDataDir(*args, **kwargs):
  7772.         '''
  7773.         GetUserDataDir(self) -> String
  7774.  
  7775.         Return the directory for the user-dependent application data files:
  7776.         $HOME/.appname under Unix, c:\\Documents and
  7777.         Settings\\username\\Application Data\x07ppname under Windows and
  7778.         ~/Library/Application Support/appname under Mac
  7779.         '''
  7780.         return _misc_.StandardPaths_GetUserDataDir(*args, **kwargs)
  7781.  
  7782.     
  7783.     def GetUserLocalDataDir(*args, **kwargs):
  7784.         """
  7785.         GetUserLocalDataDir(self) -> String
  7786.  
  7787.         Return the directory for user data files which shouldn't be shared
  7788.         with the other machines
  7789.  
  7790.         Same as `GetUserDataDir` for all platforms except Windows where it is
  7791.         the 'Local Settings\\Application Data\x07ppname' directory.
  7792.         """
  7793.         return _misc_.StandardPaths_GetUserLocalDataDir(*args, **kwargs)
  7794.  
  7795.     
  7796.     def GetPluginsDir(*args, **kwargs):
  7797.         '''
  7798.         GetPluginsDir(self) -> String
  7799.  
  7800.         Return the directory where the loadable modules (plugins) live:
  7801.         prefix/lib/appname under Unix, program directory under Windows and
  7802.         Contents/Plugins app bundle subdirectory under Mac
  7803.         '''
  7804.         return _misc_.StandardPaths_GetPluginsDir(*args, **kwargs)
  7805.  
  7806.     
  7807.     def SetInstallPrefix(*args, **kwargs):
  7808.         '''
  7809.         SetInstallPrefix(self, String prefix)
  7810.  
  7811.         Set the program installation directory which is /usr/local by default.
  7812.         This value will be used by other methods such as `GetDataDir` and
  7813.         `GetPluginsDir` as the prefix for what they return. (This function
  7814.         only has meaning on Unix systems.)
  7815.         '''
  7816.         return _misc_.StandardPaths_SetInstallPrefix(*args, **kwargs)
  7817.  
  7818.     
  7819.     def GetInstallPrefix(*args, **kwargs):
  7820.         '''
  7821.         GetInstallPrefix(self) -> String
  7822.  
  7823.         Get the program installation prefix. The default is the prefix where
  7824.         Python is installed. (This function only has meaning on Unix systems.)
  7825.         '''
  7826.         return _misc_.StandardPaths_GetInstallPrefix(*args, **kwargs)
  7827.  
  7828.  
  7829.  
  7830. class StandardPathsPtr(StandardPaths):
  7831.     
  7832.     def __init__(self, this):
  7833.         self.this = this
  7834.         if not hasattr(self, 'thisown'):
  7835.             self.thisown = 0
  7836.         
  7837.         self.__class__ = StandardPaths
  7838.  
  7839.  
  7840. _misc_.StandardPaths_swigregister(StandardPathsPtr)
  7841.  
  7842. def StandardPaths_Get(*args, **kwargs):
  7843.     '''
  7844.     StandardPaths_Get() -> StandardPaths
  7845.  
  7846.     Return the global standard paths singleton
  7847.     '''
  7848.     return _misc_.StandardPaths_Get(*args, **kwargs)
  7849.  
  7850.